Package com.oracle.bmc.waiter.internal
Class SimpleWaiterImpl<REQUEST,RESPONSE>
- java.lang.Object
- 
- com.oracle.bmc.waiter.internal.SimpleWaiterImpl<REQUEST,RESPONSE>
 
- 
- Type Parameters:
- REQUEST- The request type.
- RESPONSE- The response type.
 - All Implemented Interfaces:
- Waiter<REQUEST,RESPONSE>
 
 public class SimpleWaiterImpl<REQUEST,RESPONSE> extends Object implements Waiter<REQUEST,RESPONSE> SimpleWaiterImpl is a basic wrapper around a Callable that executes an action, and provides methods to either execute it synchronously or asynchronously.
- 
- 
Constructor SummaryConstructors Constructor Description SimpleWaiterImpl(ExecutorService executorService, Callable<RESPONSE> callable, REQUEST request)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RESPONSEexecute()Executes the waiter callback and blocks until it either returns or throws an exception.Future<Void>execute(AsyncHandler<REQUEST,RESPONSE> asyncHandler)Executes the waiter callback and returns a Future.REQUESTgetRequest()The request this waiter is being invoked on.
 
- 
- 
- 
Constructor Detail- 
SimpleWaiterImpl@ConstructorProperties({"executorService","callable","request"}) public SimpleWaiterImpl(ExecutorService executorService, Callable<RESPONSE> callable, REQUEST request) 
 
- 
 - 
Method Detail- 
executepublic RESPONSE execute() throws Exception Description copied from interface:WaiterExecutes the waiter callback and blocks until it either returns or throws an exception.
 - 
executepublic Future<Void> execute(AsyncHandler<REQUEST,RESPONSE> asyncHandler) Description copied from interface:WaiterExecutes 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. 
 - 
getRequestpublic REQUEST getRequest() The request this waiter is being invoked on.
 
- 
 
-