Class HazelcastSender

  • All Implemented Interfaces:
    Sender

    public class HazelcastSender
    extends Object
    implements Sender
    A Sender that uses a reliable topic for sending Events.
    Author:
    Matthias Müller
    See Also:
    HazelcastInstance.getReliableTopic(String)
    • Field Detail

      • instance

        protected com.hazelcast.core.HazelcastInstance instance
    • Constructor Detail

      • HazelcastSender

        public HazelcastSender​(com.hazelcast.core.HazelcastInstance instance)
    • Method Detail

      • send

        public boolean send​(Event event)
        Description copied from interface: Sender
        Sends the given Event
        Specified by:
        send in interface Sender
        Parameters:
        event - the Event so send
        Returns:
        whether or not sending the event was successful
      • logger

        protected org.slf4j.Logger logger()
      • getTopic

        protected com.hazelcast.topic.ITopic<byte[]> getTopic()
      • getTopicName

        protected String getTopicName()