| Modifier and Type | Field and Description |
|---|---|
| private final Callable | callable
The callable to invoke. |
| private final ExecutorService | executorService
The executor service to submit async requests to. |
| private final REQUEST | request
The request this waiter is being invoked on. |
| Access | Constructor and Description |
|---|---|
| public | SimpleWaiterImpl(final ExecutorService executorService, final Callable<RESPONSE> callable, final REQUEST request)
|
| Modifier and Type | Method and Description |
|---|---|
| public RESPONSE | execute()
Implements com. Executes the waiter callback and blocks until it either returns or throws an exception. |
| public Future | execute(final AsyncHandler<REQUEST, RESPONSE>
The async handler to call, must not be null. asyncHandler)Implements com. Executes the waiter callback and returns a Future. |
| public REQUEST |
| callable | back to summary |
|---|---|
| private final Callable<RESPONSE> callable The callable to invoke. | |
| executorService | back to summary |
|---|---|
| private final ExecutorService executorService The executor service to submit async requests to. | |
| request | back to summary |
|---|---|
| private final REQUEST request The request this waiter is being invoked on. | |
| SimpleWaiterImpl | back to summary |
|---|---|
public SimpleWaiterImpl(final ExecutorService executorService, final Callable<RESPONSE> callable, final REQUEST request)
| |
| execute | back to summary |
|---|---|
| public RESPONSE execute() throws Exception Implements com. Doc from com. Executes the waiter callback and blocks until it either returns or throws an exception. | |
| execute | back to summary |
|---|---|
| public Future Implements com. Doc from com. 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.
| |
| getRequest | back to summary |
|---|---|
| public REQUEST getRequest() The request this waiter is being invoked on. | |