public class BalancedProviderFuture extends ProviderFuture
COMPLETING, error, FAILURE, INCOMPLETE, STATE_FIELD_UPDATER, SUCCESS, synchronization, waiting
Constructor and Description |
---|
BalancedProviderFuture() |
BalancedProviderFuture(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, onSuccess
public BalancedProviderFuture()
public BalancedProviderFuture(ProviderSynchronization synchronization)
public boolean sync(long amount, TimeUnit unit) throws ProviderException
ProviderFuture
sync
in class ProviderFuture
amount
- 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
ProviderFuture
sync
in class ProviderFuture
ProviderException
- if an error occurs while waiting for the response.Copyright © 2013–2021 The Apache Software Foundation. All rights reserved.