Class InstanceShardOperationRequest<Request extends InstanceShardOperationRequest<Request>>

java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.single.instance.InstanceShardOperationRequest<Request>
All Implemented Interfaces:
IndicesRequest, Writeable, org.elasticsearch.common.util.concurrent.RefCounted, TaskAwareRequest
Direct Known Subclasses:
UpdateRequest

public abstract class InstanceShardOperationRequest<Request extends InstanceShardOperationRequest<Request>>
extends ActionRequest
implements IndicesRequest
  • Field Details

    • DEFAULT_TIMEOUT

      public static final org.elasticsearch.common.unit.TimeValue DEFAULT_TIMEOUT
    • timeout

      protected org.elasticsearch.common.unit.TimeValue timeout
    • index

      protected java.lang.String index
    • shardId

      protected ShardId shardId
  • Constructor Details

    • InstanceShardOperationRequest

      protected InstanceShardOperationRequest()
    • InstanceShardOperationRequest

      protected InstanceShardOperationRequest​(@Nullable ShardId shardId, StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • InstanceShardOperationRequest

      public InstanceShardOperationRequest​(java.lang.String index)
  • Method Details

    • validate

      Specified by:
      validate in class ActionRequest
    • index

      public java.lang.String index()
    • indices

      public java.lang.String[] indices()
      Description copied from interface: IndicesRequest
      Returns the array of indices that the action relates to
      Specified by:
      indices in interface IndicesRequest
    • indicesOptions

      public IndicesOptions indicesOptions()
      Description copied from interface: IndicesRequest
      Returns the indices options used to resolve indices. They tell for instance whether a single index is accepted, whether an empty array will be converted to _all, and how wildcards will be expanded if needed.
      Specified by:
      indicesOptions in interface IndicesRequest
    • index

      public final Request index​(java.lang.String index)
    • timeout

      public org.elasticsearch.common.unit.TimeValue timeout()
    • timeout

      public final Request timeout​(org.elasticsearch.common.unit.TimeValue timeout)
      A timeout to wait if the index operation can't be performed immediately. Defaults to 1m.
    • timeout

      public final Request timeout​(java.lang.String timeout)
      A timeout to wait if the index operation can't be performed immediately. Defaults to 1m.
    • concreteIndex

      public java.lang.String concreteIndex()
    • writeTo

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

      public void writeThin​(StreamOutput out) throws java.io.IOException
      Throws:
      java.io.IOException