public class AckClusterStatePublishResponseHandler extends BlockingClusterStatePublishResponseHandler
Discovery.AckListener
so that the cluster state update can be acknowledgedConstructor and Description |
---|
AckClusterStatePublishResponseHandler(Set<DiscoveryNode> publishingToNodes,
Discovery.AckListener ackListener)
Creates a new AckClusterStatePublishResponseHandler
|
Modifier and Type | Method and Description |
---|---|
void |
onFailure(DiscoveryNode node,
Throwable t)
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(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, Throwable t)
BlockingClusterStatePublishResponseHandler
onFailure
in class BlockingClusterStatePublishResponseHandler
node
- the node that replied to the publish eventCopyright © 2009–2016. All rights reserved.