Top Description Methods
com.oracle.bmc.waiter

public Interface Waiter<REQUEST, RESPONSE>

Known Direct Implementers
com.oracle.bmc.waiter.internal.SimpleWaiterImpl
Type Parameters
<REQUEST>
The request type.
<RESPONSE>
The response type.
Imports
java.util.concurrent.Future, com.oracle.bmc.responses.AsyncHandler

Waiter provides a standard interface for waiting on some condition in either a blocking or asynchronous manner.

Method Summary

Modifier and TypeMethod and Description
public RESPONSE

Returns:

The response.
execute
()

Executes the waiter callback and blocks until it either returns or throws an exception.

public Future<Void>

Returns:

A Future for the submitted request.
execute
(final AsyncHandler<REQUEST, RESPONSE>
The async handler to call, must not be null.
asyncHandler
)

Executes the waiter callback and returns a Future.

Method Detail

executeback to summary
public RESPONSE execute() throws Exception

Executes the waiter callback and blocks until it either returns or throws an exception.

Returns:RESPONSE

The response.

Exceptions
Exception:
If the waiter timed out.
executeback to summary
public Future<Void> execute(final AsyncHandler<REQUEST, RESPONSE> asyncHandler)

Executes the waiter callback and returns a Future. The Future will not contain an information. The provided handler will be invoked with either the successful response instance, or the exception thrown in case of failure.

Parameters
asyncHandler:AsyncHandler<REQUEST, RESPONSE>

The async handler to call, must not be null.

Returns:Future<Void>

A Future for the submitted request.