Sha256: 6b32227f9a9615750ff9297dabe5615f23d0e75df0051653c9cfe65c2c4fe39a

Contents?: true

Size: 450 Bytes

Versions: 6

Compression:

Stored size: 450 Bytes

Contents

module GameMachine
  class SystemMonitor < Actor::Base

    def post_init(*args)
    end

    def preStart
      #getContext.system.eventStream.subscribe(getSelf, JavaLib::DeadLetter.java_class)
    end

    def on_receive(message)
      if message.is_a?(JavaLib::DeadLetter)
        #GameMachine.logger.debug("DeadLetter #{message.message}")
      else
        #GameMachine.logger.info("Unrecognized message #{message}")
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
game_machine-1.0.4 lib/game_machine/system_monitor.rb
game_machine-1.0.2 lib/game_machine/system_monitor.rb
game_machine-0.0.11 lib/game_machine/system_monitor.rb
game_machine-0.0.10 lib/game_machine/system_monitor.rb
game_machine-0.0.9 lib/game_machine/system_monitor.rb
game_machine-0.0.8 lib/game_machine/system_monitor.rb