Class PublicationTransportHandler.PublicationContext
java.lang.Object
org.elasticsearch.cluster.coordination.PublicationTransportHandler.PublicationContext
- Enclosing class:
- PublicationTransportHandler
public class PublicationTransportHandler.PublicationContext
extends java.lang.Object
Publishing a cluster state typically involves sending the same cluster state (or diff) to every node, so the work of diffing,
serializing, and compressing the state can be done once and the results shared across publish requests. The
PublicationContext
implements this sharing.-
Method Summary
Modifier and Type Method Description void
sendApplyCommit(DiscoveryNode destination, ApplyCommitRequest applyCommitRequest, ActionListener<TransportResponse.Empty> listener)
void
sendPublishRequest(DiscoveryNode destination, PublishRequest publishRequest, ActionListener<PublishWithJoinResponse> listener)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
sendPublishRequest
public void sendPublishRequest(DiscoveryNode destination, PublishRequest publishRequest, ActionListener<PublishWithJoinResponse> listener) -
sendApplyCommit
public void sendApplyCommit(DiscoveryNode destination, ApplyCommitRequest applyCommitRequest, ActionListener<TransportResponse.Empty> listener)
-