Skip to content

Commit 087518e

Browse files
committed
javadocs
1 parent 750420b commit 087518e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

server/src/main/java/org/elasticsearch/discovery/Discovery.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,19 @@ public interface Discovery extends LifecycleComponent {
4949
void publish(ClusterChangedEvent clusterChangedEvent, AckListener ackListener);
5050

5151
interface AckListener {
52+
/**
53+
* Should be called when the discovery layer has committed the clusters state (i.e. even if this publication fails,
54+
* it is guaranteed to appear in future publications).
55+
* @param commitTime the time it took to commit the cluster state
56+
*/
5257
void onCommit(TimeValue commitTime);
58+
59+
/**
60+
* Should be called whenever the discovery layer receives confirmation from a node that it has successfully applied
61+
* the cluster state. In case of failures, an exception should be provided as parameter.
62+
* @param node the node
63+
* @param e the optional exception
64+
*/
5365
void onNodeAck(DiscoveryNode node, @Nullable Exception e);
5466
}
5567

0 commit comments

Comments
 (0)