Class ProgressiveClientFuture<V>
java.lang.Object
org.apache.qpid.protonj2.client.futures.ClientFuture<V>
org.apache.qpid.protonj2.client.futures.ProgressiveClientFuture<V>
- Type Parameters:
- V- The type that result from completion of this Future
- All Implemented Interfaces:
- Future<V>,- AsyncResult<V>
An optimized version of a ClientFuture that makes use of spin waits and other
 methods of reacting to asynchronous completion in a more timely manner.
- 
Field SummaryFields inherited from class org.apache.qpid.protonj2.client.futures.ClientFutureCANCELLED, COMPLETING, error, FAILURE, INCOMPLETE, result, STATE_FIELD_UPDATER, SUCCESS, synchronization, waiting
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a newProgressiveClientFutureinstance with no assignedClientSynchronization.ProgressiveClientFuture(ClientSynchronization<V> synchronization) Create a newProgressiveClientFutureinstance with the assignedClientSynchronization.
- 
Method SummaryMethods inherited from class org.apache.qpid.protonj2.client.futures.ClientFuturecancel, complete, failed, getResult, getState, isCancelled, isComplete, isDone, isFailed, isNotComplete, tryCancelTask
- 
Constructor Details- 
ProgressiveClientFuturepublic ProgressiveClientFuture()Create a newProgressiveClientFutureinstance with no assignedClientSynchronization.
- 
ProgressiveClientFutureCreate a newProgressiveClientFutureinstance with the assignedClientSynchronization.- Parameters:
- synchronization- the- ClientSynchronizationthat should be notified upon completion of this future.
 
 
- 
- 
Method Details- 
getpublic V get(long amount, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
- getin interface- Future<V>
- Specified by:
- getin class- ClientFuture<V>
- Throws:
- InterruptedException
- ExecutionException
- TimeoutException
 
- 
get- Specified by:
- getin interface- Future<V>
- Specified by:
- getin class- ClientFuture<V>
- Throws:
- InterruptedException
- ExecutionException
 
 
-