public abstract class ActionRequest<T extends ActionRequest> extends TransportRequest
TransportRequest.Empty
Modifier | Constructor and Description |
---|---|
protected |
ActionRequest() |
protected |
ActionRequest(ActionRequest request) |
Modifier and Type | Method and Description |
---|---|
boolean |
listenerThreaded()
Should the response listener be executed on a thread or not.
|
T |
listenerThreaded(boolean listenerThreaded)
Sets if the response listener be executed on a thread or not.
|
void |
readFrom(StreamInput in) |
abstract ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
protected ActionRequest()
protected ActionRequest(ActionRequest request)
public final boolean listenerThreaded()
When not executing on a thread, it will either be executed on the calling thread, or on an expensive, IO based, thread.
public final T listenerThreaded(boolean listenerThreaded)
public abstract ActionRequestValidationException validate()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class TransportMessage<TransportRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class TransportMessage<TransportRequest>
IOException
Copyright © 2009–2015. All rights reserved.