Class BroadcastRequest<Request extends BroadcastRequest<Request>>

java.lang.Object
All Implemented Interfaces:
IndicesRequest, IndicesRequest.Replaceable, Writeable, org.elasticsearch.common.util.concurrent.RefCounted, TaskAwareRequest
Direct Known Subclasses:
ClearIndicesCacheRequest, FlushRequest, ForceMergeRequest, IndicesSegmentsRequest, IndicesStatsRequest, RecoveryRequest, RefreshRequest, SyncedFlushRequest, UpgradeRequest, UpgradeStatusRequest, ValidateQueryRequest

public class BroadcastRequest<Request extends BroadcastRequest<Request>>
extends ActionRequest
implements IndicesRequest.Replaceable
  • Field Details

    • indices

      protected java.lang.String[] indices
  • Constructor Details

    • BroadcastRequest

      public BroadcastRequest​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • BroadcastRequest

      protected BroadcastRequest​(java.lang.String... indices)
    • BroadcastRequest

      protected BroadcastRequest​(java.lang.String[] indices, IndicesOptions indicesOptions)
    • BroadcastRequest

      protected BroadcastRequest​(java.lang.String[] indices, IndicesOptions indicesOptions, @Nullable org.elasticsearch.common.unit.TimeValue timeout)
  • Method Details

    • 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
    • indices

      public final Request indices​(java.lang.String... indices)
      Description copied from interface: IndicesRequest.Replaceable
      Sets the indices that the action relates to.
      Specified by:
      indices in interface IndicesRequest.Replaceable
    • validate

      Specified by:
      validate in class ActionRequest
    • 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
    • indicesOptions

      public final Request indicesOptions​(IndicesOptions indicesOptions)
    • timeout

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

      public final Request timeout​(@Nullable org.elasticsearch.common.unit.TimeValue timeout)
    • includeDataStreams

      public boolean includeDataStreams()
      Description copied from interface: IndicesRequest
      Determines whether the request should be applied to data streams. When false, none of the names or wildcard expressions in IndicesRequest.indices() should be applied to or expanded to any data streams. All layers involved in the request's fulfillment including security, name resolution, etc., should respect this flag.
      Specified by:
      includeDataStreams in interface IndicesRequest
    • 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