Class MasterNodeRequest<Request extends MasterNodeRequest<Request>>

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest
Direct Known Subclasses:
AcknowledgedRequest, AddVotingConfigExclusionsRequest, ClearVotingConfigExclusionsRequest, CloneSnapshotRequest, ClusterAllocationExplainRequest, CompletionPersistentTaskAction.Request, CreateSnapshotRequest, DeleteComponentTemplateAction.Request, DeleteComposableIndexTemplateAction.Request, DeleteIndexTemplateRequest, DeleteSnapshotRequest, GetSnapshotsRequest, GetSnapshottableFeaturesRequest, MasterNodeReadRequest, PutComponentTemplateAction.Request, PutComposableIndexTemplateAction.Request, PutIndexTemplateRequest, RemovePersistentTaskAction.Request, ResetFeatureStateRequest, RestoreSnapshotRequest, SnapshotsStatusRequest, StartPersistentTaskAction.Request, UpdateIndexShardSnapshotStatusRequest, UpdatePersistentTaskStatusAction.Request

public abstract class MasterNodeRequest<Request extends MasterNodeRequest<Request>> extends ActionRequest
A based request for master based operation.
  • Field Details

    • DEFAULT_MASTER_NODE_TIMEOUT

      public static final org.elasticsearch.core.TimeValue DEFAULT_MASTER_NODE_TIMEOUT
    • masterNodeTimeout

      protected org.elasticsearch.core.TimeValue masterNodeTimeout
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class ActionRequest
      Throws:
      IOException
    • masterNodeTimeout

      public final Request masterNodeTimeout(org.elasticsearch.core.TimeValue timeout)
      A timeout value in case the master has not been discovered yet or disconnected.
    • masterNodeTimeout

      public final Request masterNodeTimeout(String timeout)
      A timeout value in case the master has not been discovered yet or disconnected.
    • masterNodeTimeout

      public final org.elasticsearch.core.TimeValue masterNodeTimeout()