Interface TopicEventCluster<E,N>
- Type Parameters:
E
- The type of the events sent byTopicEventPublisher
N
- The type of the nodes in the cluster
- All Known Implementing Classes:
NutclusterTopicEventCluster
public interface TopicEventCluster<E,N>
Represents a view of the Confluence cluster as used by
TopicEventPublisher
.- Since:
- 8.3
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialise
(BiConsumer<N, E> eventListener, BiConsumer<N, UUID> ackListener, Consumer<N> nodeRemovedListener) Initialise the cluster with the given listeners.void
publishAck
(UUID ack) void
publishEvent
(E event)
-
Method Details
-
initialise
void initialise(BiConsumer<N, E> eventListener, BiConsumer<N, UUID> ackListener, Consumer<N> nodeRemovedListener) Initialise the cluster with the given listeners.- Parameters:
eventListener
- The listener that will consume events received from the clusterackListener
- The listener that will receive event acknowledgements from the clusternodeRemovedListener
- The listener that will receive notifications of cluster nodes being removed
-
getOtherClusterMembers
-
publishEvent
-
publishAck
-
wrapEvent
-