Sha256: 548306fe38b9bc4b05ec32ad5661585dd29f9615cef38cdd97cdcd542f8ada34
Contents?: true
Size: 635 Bytes
Versions: 6
Compression:
Stored size: 635 Bytes
Contents
module GameMachine module Actor class System attr_reader :name, :actor_system def initialize(name,config_str) @config_str = config_str @name = name end def address actor_system.to_string end def config @config ||= JavaLib::ConfigFactory.parseString(@config_str). getConfig(name).withFallback(JavaLib::ConfigFactory.load) end def create! @actor_system ||= JavaLib::ActorSystem.create(name, config) end def shutdown! actor_system.shutdown actor_system.await_termination end end end end
Version data entries
6 entries across 6 versions & 1 rubygems