Class ConservativeClientFuture<V>
java.lang.Object
org.apache.qpid.protonj2.client.futures.ClientFuture<V>
org.apache.qpid.protonj2.client.futures.ConservativeClientFuture<V>
- Type Parameters:
- V- The type that result from completion of this Future
- All Implemented Interfaces:
- Future<V>,- AsyncResult<V>
A more conservative implementation of a ClientFuture that is better on some
 platforms or resource constrained hardware where high CPU usage can be more
 counter productive than other variants that might spin or otherwise avoid
 entry into states requiring thread signaling.
- 
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 newConservativeClientFutureinstance with no assignedClientSynchronization.ConservativeClientFuture(ClientSynchronization<V> synchronization) Create a newConservativeClientFutureinstance 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- 
ConservativeClientFuturepublic ConservativeClientFuture()Create a newConservativeClientFutureinstance with no assignedClientSynchronization.
- 
ConservativeClientFutureCreate a newConservativeClientFutureinstance 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
 
 
-