public interface Request<RequestIdT,RequestT extends Request<RequestIdT,RequestT,ResponseT>,ResponseT> extends Delayed
Modifier and Type | Method and Description |
---|---|
long |
getDelay(TimeUnit unit)
Indicates how many units of time are remaining until this request times
out.
|
RequestIdT |
getId()
Returns the id of this request.
|
boolean |
isProcessed()
Returns true if this request has already been processed.
|
void |
processError(Throwable t)
If an error or exception occurs during processing of this request then
processError is called with the error or exception object.
|
boolean |
processResponse(ResponseT reply)
Tell the request about a reply that come in with matched ids.
|
RequestT |
processTimeout()
Notify this request that no reply has come in before its timeout has
elapsed.
|
compareTo
RequestIdT getId()
long getDelay(TimeUnit unit)
boolean processResponse(ResponseT reply)
RequestT processTimeout()
void processError(Throwable t)
boolean isProcessed()
Copyright © 2022. All rights reserved.