Class PublicationTransportHandler.PublicationContext
java.lang.Object
org.elasticsearch.cluster.coordination.PublicationTransportHandler.PublicationContext
- Enclosing class:
- PublicationTransportHandler
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 TypeMethodDescriptionvoid
sendApplyCommit(DiscoveryNode destination, ApplyCommitRequest applyCommitRequest, ActionListener<TransportResponse.Empty> listener)
void
sendPublishRequest(DiscoveryNode destination, PublishRequest publishRequest, ActionListener<PublishWithJoinResponse> listener)
-
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)
-