public abstract class AbstractBrowseRequest<M> extends java.lang.Object implements Request<M>
| Modifier and Type | Field and Description |
|---|---|
protected BrowseOperation |
browseOperation |
protected int |
timeout |
| Constructor and Description |
|---|
AbstractBrowseRequest(BrowseOperation browseOperation,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
fail(FailureType type,
DriverState state,
java.lang.Exception ex)
Called if the response to the most recently created message is not going to be received.
|
RequestPriority |
getPriority()
Returns the
RequestPriority of this request. |
int |
getTimeout()
Returns the amount of time (in milliseconds) that this request should be given to run, before it is failed out
for a timeout.
|
boolean |
isRetryAllowed() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKey, receiveMessage, sendMessageprotected BrowseOperation browseOperation
protected int timeout
public AbstractBrowseRequest(BrowseOperation browseOperation, int timeout)
public void fail(FailureType type, DriverState state, java.lang.Exception ex)
Requestpublic boolean isRetryAllowed()
isRetryAllowed in interface Request<M>true if retrying is allowed if Request.sendMessage() returns false.public int getTimeout()
RequestgetTimeout in interface Request<M>public RequestPriority getPriority()
RequestRequestPriority of this request.getPriority in interface Request<M>RequestPriority of this request.