org.elasticsearch.action.support.single.instance
Class InstanceShardOperationRequest

java.lang.Object
  extended by org.elasticsearch.action.support.single.instance.InstanceShardOperationRequest
All Implemented Interfaces:
ActionRequest, Streamable
Direct Known Subclasses:
UpdateRequest

public abstract class InstanceShardOperationRequest
extends Object
implements ActionRequest


Field Summary
static TimeValue DEFAULT_TIMEOUT
           
protected  String index
           
protected  int shardId
           
protected  TimeValue timeout
           
 
Constructor Summary
protected InstanceShardOperationRequest()
           
  InstanceShardOperationRequest(String index)
           
 
Method Summary
 void beforeLocalFork()
           
 String index()
           
 boolean listenerThreaded()
          Should the listener be called on a separate thread if needed.
 InstanceShardOperationRequest listenerThreaded(boolean threadedListener)
          Sets if the response listener be executed on a thread or not.
 void readFrom(StreamInput in)
           
 TimeValue timeout()
           
 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

DEFAULT_TIMEOUT

public static final TimeValue DEFAULT_TIMEOUT

timeout

protected TimeValue timeout

index

protected String index

shardId

protected int shardId
Constructor Detail

InstanceShardOperationRequest

protected InstanceShardOperationRequest()

InstanceShardOperationRequest

public InstanceShardOperationRequest(String index)
Method Detail

timeout

public TimeValue timeout()

validate

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

index

public String index()

listenerThreaded

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

Specified by:
listenerThreaded in interface ActionRequest

listenerThreaded

public InstanceShardOperationRequest 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

readFrom

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

writeTo

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

beforeLocalFork

public void beforeLocalFork()


Copyright © 2009-2012. All Rights Reserved.