Package org.elasticsearch.discovery
Interface Discovery.AckListener
-
- Enclosing interface:
- Discovery
public static interface Discovery.AckListener
-
-
Method Summary
Modifier and Type Method Description void
onCommit(TimeValue commitTime)
Should be called when the discovery layer has committed the clusters state (i.e.void
onNodeAck(DiscoveryNode node, java.lang.Exception e)
Should be called whenever the discovery layer receives confirmation from a node that it has successfully applied the cluster state.
-
-
-
Method Detail
-
onCommit
void onCommit(TimeValue commitTime)
Should be called when the discovery layer has committed the clusters state (i.e. even if this publication fails, it is guaranteed to appear in future publications).- Parameters:
commitTime
- the time it took to commit the cluster state
-
onNodeAck
void onNodeAck(DiscoveryNode node, @Nullable java.lang.Exception e)
Should be called whenever the discovery layer receives confirmation from a node that it has successfully applied the cluster state. In case of failures, an exception should be provided as parameter.- Parameters:
node
- the nodee
- the optional exception
-
-