voldemort.store.nonblockingstore
Interface NonblockingStoreCallback
public interface NonblockingStoreCallback
A NonblockingStoreCallback is provided as an argument to the submit methods
of the NonblockingStore
API. When the response from the request is
received, the requestComplete(java.lang.Object, long)
method is invoked with the result of
the request and the time (in milliseconds) it took between issuing the
request and receiving the response.
- See Also:
NonblockingStore
Method Summary |
void |
requestComplete(java.lang.Object result,
long requestTime)
Signals that the request is complete and provides the response -- or
Exception (if the request failed) -- and the time (in milliseconds) it
took between issuing the request and receiving the response. |
requestComplete
void requestComplete(java.lang.Object result,
long requestTime)
- Signals that the request is complete and provides the response -- or
Exception (if the request failed) -- and the time (in milliseconds) it
took between issuing the request and receiving the response.
- Parameters:
result
- Type-specific result from the request or Exception if the
request failedrequestTime
- Time (in milliseconds) for the duration of the request
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu