Package org.apache.hadoop.io.retry
Class AsyncCallHandler
java.lang.Object
org.apache.hadoop.io.retry.AsyncCallHandler
Handle async calls.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longstatic voidsetLowerLayerAsyncReturn(AsyncGet<?, Exception> asyncReturn) For the lower rpc layers to set the async return value.
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
AsyncCallHandler
public AsyncCallHandler()
-
-
Method Details
-
getAsyncReturn
- Type Parameters:
T- T.R- R.- Returns:
- the async return value from
AsyncCallHandler.
-
setLowerLayerAsyncReturn
For the lower rpc layers to set the async return value.- Parameters:
asyncReturn- asyncReturn.
-
getGracePeriod
@VisibleForTesting public static long getGracePeriod()
-