Class ForwardingAsyncHandler<REQUEST,RESPONSE>
- java.lang.Object
-
- com.oracle.bmc.responses.internal.ForwardingAsyncHandler<REQUEST,RESPONSE>
-
- All Implemented Interfaces:
AsyncHandler<REQUEST,RESPONSE>
- Direct Known Subclasses:
StreamClosingAsyncHandler
public class ForwardingAsyncHandler<REQUEST,RESPONSE> extends Object implements AsyncHandler<REQUEST,RESPONSE>
-
-
Constructor Summary
Constructors Constructor Description ForwardingAsyncHandler(AsyncHandler<REQUEST,RESPONSE> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onError(REQUEST request, Throwable error)
Called if the request could not be completed successfully.void
onSuccess(REQUEST request, RESPONSE response)
Called if the request was successfully completed.
-
-
-
Constructor Detail
-
ForwardingAsyncHandler
@ConstructorProperties("delegate") public ForwardingAsyncHandler(AsyncHandler<REQUEST,RESPONSE> delegate)
-
-
Method Detail
-
onSuccess
public void onSuccess(REQUEST request, RESPONSE response)
Description copied from interface:AsyncHandler
Called if the request was successfully completed.- Specified by:
onSuccess
in interfaceAsyncHandler<REQUEST,RESPONSE>
- Parameters:
request
- The request that was made.response
- The response that was received.
-
onError
public void onError(REQUEST request, Throwable error)
Description copied from interface:AsyncHandler
Called if the request could not be completed successfully.- Specified by:
onError
in interfaceAsyncHandler<REQUEST,RESPONSE>
- Parameters:
request
- The request that was made.error
- The error that was received.
-
-