Book Image

Getting Started with Hazelcast, Second Edition

By : Matthew Johns
Book Image

Getting Started with Hazelcast, Second Edition

By: Matthew Johns

Overview of this book

Table of Contents (19 chapters)
Getting Started with Hazelcast Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Listeners notified on topic broadcast


<topic name="default">
 <message-listeners>
  <message-listener>
   com.packtpub.hazelcast.listeners.TopicListener
  </message-listener>
 </message-listeners>
</topic>

config.getTopicConfig("default")
 .addMessageListenerConfig(new ListenerConfig(
  TopicListener.class.getCanonicalName()
 ));