Skip to content

Instantly share code, notes, and snippets.

@enebo
Last active October 7, 2015 22:06
Show Gist options
  • Save enebo/3f69d713dac19ef7a608 to your computer and use it in GitHub Desktop.
Save enebo/3f69d713dac19ef7a608 to your computer and use it in GitHub Desktop.
com.hazelcast.core.SampleHazelcast.getTopic("default").tap { |topic| topic.addMessageListener { |msg| puts "Message received = " + msg } }.publish "message-object"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment