org.elasticsearch.action
Interface ActionRequest

All Superinterfaces:
Streamable
All Known Implementing Classes:
BroadcastOperationRequest, BroadcastPingRequest, ClearIndicesCacheRequest, ClusterHealthRequest, ClusterStateRequest, CountRequest, CreateIndexRequest, DeleteByQueryRequest, DeleteIndexRequest, DeleteRequest, FlushRequest, GatewaySnapshotRequest, GetRequest, IndexDeleteByQueryRequest, IndexGatewaySnapshotRequest, IndexReplicationOperationRequest, IndexReplicationPingRequest, IndexRequest, IndicesAliasesRequest, IndicesReplicationOperationRequest, IndicesStatusRequest, MappingUpdatedAction.MappingUpdatedRequest, MasterNodeOperationRequest, MoreLikeThisRequest, NodesInfoRequest, NodesOperationRequest, NodesRestartRequest, NodesShutdownRequest, NodesStatsRequest, OptimizeRequest, PutMappingRequest, RefreshRequest, ReplicationPingRequest, SearchRequest, SearchScrollRequest, ShardDeleteByQueryRequest, ShardReplicationOperationRequest, ShardReplicationPingRequest, SingleOperationRequest, SinglePingRequest, TermsRequest

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.util.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.