public class AckClusterStatePublishResponseHandler extends BlockingClusterStatePublishResponseHandler
Discovery.AckListener
so that the cluster state update can be acknowledgedConstructor and Description |
---|
AckClusterStatePublishResponseHandler(java.util.Set<DiscoveryNode> publishingToNodes,
Discovery.AckListener ackListener)
Creates a new AckClusterStatePublishResponseHandler
|
Modifier and Type | Method and Description |
---|---|
void |
onFailure(DiscoveryNode node,
java.lang.Exception e)
Called for each failure obtained from non master nodes
|
void |
onResponse(DiscoveryNode node)
Called for each response obtained from non master nodes
|
awaitAllNodes, pendingNodes
public AckClusterStatePublishResponseHandler(java.util.Set<DiscoveryNode> publishingToNodes, Discovery.AckListener ackListener)
publishingToNodes
- the set of nodes to which the cluster state will be published and should respondackListener
- the Discovery.AckListener
to notify for each response
gotten from non master nodespublic void onResponse(DiscoveryNode node)
BlockingClusterStatePublishResponseHandler
onResponse
in class BlockingClusterStatePublishResponseHandler
node
- the node that replied to the publish eventpublic void onFailure(DiscoveryNode node, java.lang.Exception e)
BlockingClusterStatePublishResponseHandler
onFailure
in class BlockingClusterStatePublishResponseHandler
node
- the node that replied to the publish event