org.elasticsearch.action
Interface ActionRequest

All Superinterfaces:
Streamable
All Known Implementing Classes:
AnalyzeRequest, BroadcastOperationRequest, BroadcastPingRequest, BulkRequest, BulkShardRequest, ClearIndicesCacheRequest, CloseIndexRequest, ClusterHealthRequest, ClusterStateRequest, CountRequest, CreateIndexRequest, DeleteByQueryRequest, DeleteIndexRequest, DeleteIndexTemplateRequest, DeleteMappingRequest, DeleteRequest, FlushRequest, GatewaySnapshotRequest, GetRequest, IndexDeleteByQueryRequest, IndexDeleteRequest, IndexReplicationOperationRequest, IndexReplicationPingRequest, IndexRequest, IndicesAliasesRequest, IndicesExistsRequest, IndicesReplicationOperationRequest, IndicesSegmentsRequest, IndicesStatusRequest, MappingUpdatedAction.MappingUpdatedRequest, MasterNodeOperationRequest, MoreLikeThisRequest, MultiGetRequest, MultiGetShardRequest, NodesInfoRequest, NodesOperationRequest, NodesRestartRequest, NodesShutdownRequest, NodesStatsRequest, OpenIndexRequest, OptimizeRequest, PercolateRequest, PutIndexTemplateRequest, PutMappingRequest, RefreshRequest, ReplicationPingRequest, SearchRequest, SearchScrollRequest, ShardDeleteByQueryRequest, ShardDeleteRequest, ShardReplicationOperationRequest, ShardReplicationPingRequest, SingleCustomOperationRequest, SinglePingRequest, SingleShardOperationRequest, UpdateSettingsRequest

public interface ActionRequest
extends Streamable


Method Summary
 boolean listenerThreaded()
          Should the response listener be executed on a thread or not.
 ActionRequest listenerThreaded(boolean listenerThreaded)
          Sets if the response listener be executed on a thread or not.
 ActionRequestValidationException validate()
           
 
Methods inherited from interface org.elasticsearch.common.io.stream.Streamable
readFrom, writeTo
 

Method Detail

validate

ActionRequestValidationException validate()

listenerThreaded

boolean listenerThreaded()
Should the response listener be executed on a thread or not.

When not executing on a thread, it will either be executed on the calling thread, or on an expensive, IO based, thread.


listenerThreaded

ActionRequest listenerThreaded(boolean listenerThreaded)
Sets if the response listener be executed on a thread or not.