public class AckClusterStatePublishResponseHandler extends BlockingClusterStatePublishResponseHandler
Discovery.AckListener
so that the cluster state update can be acknowledged| Constructor 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, pendingNodespublic 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)
BlockingClusterStatePublishResponseHandleronResponse in class BlockingClusterStatePublishResponseHandlernode - the node that replied to the publish eventpublic void onFailure(DiscoveryNode node, java.lang.Exception e)
BlockingClusterStatePublishResponseHandleronFailure in class BlockingClusterStatePublishResponseHandlernode - the node that replied to the publish event