Top Fields Constructors Methods
com.oracle.bmc.responses.internal

public Class ForwardingAsyncHandler<REQUEST, RESPONSE>

extends Object
implements AsyncHandler<REQUEST, RESPONSE>
Class Inheritance
All Implemented Interfaces
com.oracle.bmc.responses.AsyncHandler
Known Direct Subclasses
com.oracle.bmc.responses.internal.StreamClosingAsyncHandler
Imports
com.oracle.bmc.responses.AsyncHandler

Field Summary

Modifier and TypeField and Description
private final AsyncHandler<REQUEST, RESPONSE>

Constructor Summary

AccessConstructor and Description
public
ForwardingAsyncHandler(final AsyncHandler<REQUEST, RESPONSE> delegate)

Method Summary

Modifier and TypeMethod and Description
public void
onError(REQUEST
The request that was made.
request
,
Throwable
The error that was received.
error
)

Implements com.oracle.bmc.responses.AsyncHandler.onError.

Called if the request could not be completed successfully.

public void
onSuccess(REQUEST
The request that was made.
request
,
RESPONSE
The response that was received.
response
)

Implements com.oracle.bmc.responses.AsyncHandler.onSuccess.

Called if the request was successfully completed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
private final AsyncHandler<REQUEST, RESPONSE> delegate

Constructor Detail

ForwardingAsyncHandlerback to summary
public ForwardingAsyncHandler(final AsyncHandler<REQUEST, RESPONSE> delegate)
Annotations
@java.beans.ConstructorProperties

Method Detail

onErrorback to summary
public void onError(REQUEST request, Throwable error)

Implements com.oracle.bmc.responses.AsyncHandler.onError.

Doc from com.oracle.bmc.responses.AsyncHandler.onError.

Called if the request could not be completed successfully.

Parameters
request:REQUEST

The request that was made.

error:Throwable

The error that was received.

Annotations
@Override
onSuccessback to summary
public void onSuccess(REQUEST request, RESPONSE response)

Implements com.oracle.bmc.responses.AsyncHandler.onSuccess.

Doc from com.oracle.bmc.responses.AsyncHandler.onSuccess.

Called if the request was successfully completed.

Parameters
request:REQUEST

The request that was made.

response:RESPONSE

The response that was received.

Annotations
@Override