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

public Class NoOpAsyncHandler<REQUEST, RESPONSE>

extends Object
implements AsyncHandler<REQUEST, RESPONSE>
Class Inheritance
All Implemented Interfaces
com.oracle.bmc.responses.AsyncHandler
Type Parameters
<REQUEST>
type of the request
<RESPONSE>
type of the response
Imports
com.oracle.bmc.responses.AsyncHandler

An async handler that doesn't do anything.

Field Summary

Modifier and TypeField and Description
private static final NoOpAsyncHandler<?, ?>

Constructor Summary

AccessConstructor and Description
private
NoOpAsyncHandler()

Private singleton constructor

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.

public static final <
type of the request
REQUEST
,
type of the response
RESPONSE
>
NoOpAsyncHandler<REQUEST, RESPONSE>

Returns:

no op async handler singleton instance
singleton
()

Return the singleton with the correct generic types.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SINGLETONback to summary
private static final NoOpAsyncHandler<?, ?> SINGLETON

Constructor Detail

NoOpAsyncHandlerback to summary
private NoOpAsyncHandler()

Private singleton constructor

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
singletonback to summary
public static final <REQUEST, RESPONSE> NoOpAsyncHandler<REQUEST, RESPONSE> singleton()

Return the singleton with the correct generic types.

Parameters
<REQUEST>
type of the request
<RESPONSE>
type of the response
Returns:NoOpAsyncHandler<REQUEST, RESPONSE>

no op async handler singleton instance