Class PublicationTransportHandler.PublicationContext
org.elasticsearch.cluster.coordination.PublicationTransportHandler.PublicationContext
- Enclosing class:
- PublicationTransportHandler
public class PublicationTransportHandler.PublicationContext
extends
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)
Methods inherited from class java.lang.
, , , , , , , , , ,
-
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)
-