Interface WanPublisher<T>

  • Type Parameters:
    T - type of event data that the publisher will publish

    public interface WanPublisher<T>
    This interface offers the implementation of different kinds of replication techniques like TCP, UDP or maybe even an JMS based service. Implementations of this interface represent a replication target, normally another Hazelcast cluster only reachable over a Wide Area Network (WAN). The publisher may implement HazelcastInstanceAware if it needs a reference to the instance on which it is being run.
    • Method Detail

      • shutdown

        void shutdown()
        Closes the publisher and its internal connections and shuts down other internal states. Signals the publisher to shut down and clean up its resources. The method does not necessarily block until the publisher has shut down.
      • reset

        default void reset()
        Resets the publisher (e.g. before split-brain merge).
      • publishReplicationEvent

        void publishReplicationEvent​(WanEvent<T> eventObject)
        Publish the eventObject WAN replication event.
        eventObject - the replication event
      • publishReplicationEventBackup

        void publishReplicationEventBackup​(WanEvent<T> eventObject)
        Publish the eventObject WAN replication event backup.
        eventObject - the replication backup event