Class MasterNodeRequest<Request extends MasterNodeRequest<Request>>

All Implemented Interfaces:
Writeable, RefCounted, TaskAwareRequest
Direct Known Subclasses:
AcknowledgedRequest, AddVotingConfigExclusionsRequest, ClearVotingConfigExclusionsRequest, CloneSnapshotRequest, ClusterAllocationExplainRequest, CompletionPersistentTaskAction.Request, CreateSnapshotRequest, DeleteDataStreamAction.Request, DeleteIndexTemplateRequest, DeleteSnapshotRequest, DownsampleAction.Request, GetFeatureUpgradeStatusRequest, GetShardSnapshotRequest, GetSnapshotsRequest, GetSnapshottableFeaturesRequest, MasterNodeReadRequest, PostFeatureUpgradeRequest, PromoteDataStreamAction.Request, PutComponentTemplateAction.Request, PutIndexTemplateRequest, RemovePersistentTaskAction.Request, ResetFeatureStateRequest, RestoreSnapshotRequest, SnapshotsStatusRequest, StartPersistentTaskAction.Request, TransportDeleteComponentTemplateAction.Request, TransportDeleteComposableIndexTemplateAction.Request, TransportPutComposableIndexTemplateAction.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 TimeValue DEFAULT_MASTER_NODE_TIMEOUT
    • masterNodeTimeout

      protected 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(TimeValue timeout)
      Specifies how long to wait when the master has not been discovered yet, or is disconnected, or is busy processing other tasks. The value TimeValue.MINUS_ONE means to wait forever.
    • masterNodeTimeout

      public final Request masterNodeTimeout(String timeout)
      Specifies how long to wait when the master has not been discovered yet, or is disconnected, or is busy processing other tasks. The value TimeValue.MINUS_ONE means to wait forever.
    • masterNodeTimeout

      public final TimeValue masterNodeTimeout()
      Returns:
      how long to wait when the master has not been discovered yet, or is disconnected, or is busy processing other tasks. The value TimeValue.MINUS_ONE means to wait forever.