|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elasticsearch.action.support.replication.ShardReplicationOperationRequest
public abstract class ShardReplicationOperationRequest
| Field Summary | |
|---|---|
static TimeValue |
DEFAULT_TIMEOUT
|
protected java.lang.String |
index
|
protected TimeValue |
timeout
|
| Constructor Summary | |
|---|---|
ShardReplicationOperationRequest()
|
|
| Method Summary | |
|---|---|
void |
beforeLocalFork()
Called before the request gets forked into a local thread. |
WriteConsistencyLevel |
consistencyLevel()
|
ShardReplicationOperationRequest |
consistencyLevel(WriteConsistencyLevel consistencyLevel)
|
java.lang.String |
index()
|
ShardReplicationOperationRequest |
index(java.lang.String index)
|
boolean |
listenerThreaded()
Should the listener be called on a separate thread if needed. |
ShardReplicationOperationRequest |
listenerThreaded(boolean threadedListener)
Should the listener be called on a separate thread if needed. |
boolean |
operationThreaded()
Controls if the operation will be executed on a separate thread when executed locally. |
ShardReplicationOperationRequest |
operationThreaded(boolean threadedOperation)
Controls if the operation will be executed on a separate thread when executed locally. |
void |
readFrom(StreamInput in)
|
ReplicationType |
replicationType()
The replication type. |
ShardReplicationOperationRequest |
replicationType(ReplicationType replicationType)
Sets the replication type. |
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 |
|---|
public static final TimeValue DEFAULT_TIMEOUT
protected TimeValue timeout
protected java.lang.String index
| Constructor Detail |
|---|
public ShardReplicationOperationRequest()
| Method Detail |
|---|
public TimeValue timeout()
public java.lang.String index()
public ShardReplicationOperationRequest index(java.lang.String index)
public boolean listenerThreaded()
listenerThreaded in interface ActionRequestpublic ShardReplicationOperationRequest listenerThreaded(boolean threadedListener)
listenerThreaded in interface ActionRequestpublic boolean operationThreaded()
public ShardReplicationOperationRequest operationThreaded(boolean threadedOperation)
public ReplicationType replicationType()
public ShardReplicationOperationRequest replicationType(ReplicationType replicationType)
public WriteConsistencyLevel consistencyLevel()
public ShardReplicationOperationRequest consistencyLevel(WriteConsistencyLevel consistencyLevel)
public ActionRequestValidationException validate()
validate in interface ActionRequest
public void readFrom(StreamInput in)
throws java.io.IOException
readFrom in interface Streamablejava.io.IOException
public void writeTo(StreamOutput out)
throws java.io.IOException
writeTo in interface Streamablejava.io.IOExceptionpublic void beforeLocalFork()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||