public class ConservativeProviderFuture extends ProviderFuture
COMPLETING, error, FAILURE, INCOMPLETE, STATE_FIELD_UPDATER, SUCCESS, synchronization, waiting| Constructor and Description |
|---|
ConservativeProviderFuture() |
ConservativeProviderFuture(ProviderSynchronization synchronization) |
| Modifier and Type | Method and Description |
|---|---|
void |
sync()
Waits for a response to some Provider requested operation.
|
boolean |
sync(long amount,
TimeUnit unit)
Timed wait for a response to a Provider operation.
|
failOnError, isComplete, onFailure, onSuccesspublic ConservativeProviderFuture()
public ConservativeProviderFuture(ProviderSynchronization synchronization)
public boolean sync(long amount,
TimeUnit unit)
throws ProviderException
ProviderFuturesync in class ProviderFutureamount - The amount of time to wait before abandoning the wait.unit - The unit to use for this wait period.ProviderException - if an error occurs while waiting for the response.public void sync()
throws ProviderException
ProviderFuturesync in class ProviderFutureProviderException - if an error occurs while waiting for the response.Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.