public abstract class ActionRequest<T extends ActionRequest> extends TransportRequest
TransportRequest.Emptyheaders| 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) |
putHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextprotected 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 StreamablereadFrom in class TransportMessage<TransportRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class TransportMessage<TransportRequest>IOExceptionCopyright © 2009–2016. All rights reserved.