org.elasticsearch.action.support.single
Class SingleOperationRequest

java.lang.Object
  extended by org.elasticsearch.action.support.single.SingleOperationRequest
All Implemented Interfaces:
ActionRequest, Streamable
Direct Known Subclasses:
GetRequest, SinglePingRequest

public abstract class SingleOperationRequest
extends java.lang.Object
implements ActionRequest


Field Summary
protected  java.lang.String id
           
protected  java.lang.String index
           
protected  java.lang.String routing
           
protected  java.lang.String type
           
 
Constructor Summary
protected SingleOperationRequest()
           
  SingleOperationRequest(java.lang.String index, java.lang.String type, java.lang.String id)
           
 
Method Summary
 java.lang.String id()
           
 java.lang.String index()
           
 boolean listenerThreaded()
          Should the listener be called on a separate thread if needed.
 SingleOperationRequest listenerThreaded(boolean threadedListener)
          Sets if the response listener be executed on a thread or not.
 boolean operationThreaded()
          Controls if the operation will be executed on a separate thread when executed locally.
 SingleOperationRequest operationThreaded(boolean threadedOperation)
          Controls if the operation will be executed on a separate thread when executed locally.
 void readFrom(StreamInput in)
           
 java.lang.String routing()
           
 java.lang.String type()
           
 ActionRequestValidationException validate()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

protected java.lang.String index

type

protected java.lang.String type

id

protected java.lang.String id

routing

protected java.lang.String routing
Constructor Detail

SingleOperationRequest

protected SingleOperationRequest()

SingleOperationRequest

public SingleOperationRequest(java.lang.String index,
                              java.lang.String type,
                              java.lang.String id)
Method Detail

validate

public ActionRequestValidationException validate()
Specified by:
validate in interface ActionRequest

index

public java.lang.String index()

type

public java.lang.String type()

id

public java.lang.String id()

routing

public java.lang.String routing()

listenerThreaded

public boolean listenerThreaded()
Should the listener be called on a separate thread if needed.

Specified by:
listenerThreaded in interface ActionRequest

listenerThreaded

public SingleOperationRequest listenerThreaded(boolean threadedListener)
Description copied from interface: ActionRequest
Sets if the response listener be executed on a thread or not.

Specified by:
listenerThreaded in interface ActionRequest

operationThreaded

public boolean operationThreaded()
Controls if the operation will be executed on a separate thread when executed locally.


operationThreaded

public SingleOperationRequest operationThreaded(boolean threadedOperation)
Controls if the operation will be executed on a separate thread when executed locally.


readFrom

public void readFrom(StreamInput in)
              throws java.io.IOException
Specified by:
readFrom in interface Streamable
Throws:
java.io.IOException

writeTo

public void writeTo(StreamOutput out)
             throws java.io.IOException
Specified by:
writeTo in interface Streamable
Throws:
java.io.IOException