| Modifier and Type | Method and Description |
|---|---|
void |
await(long timeout,
TimeUnit timeUnit)
Waits until the fence is complete, or till the timeout specified.
|
public void await(long timeout,
TimeUnit timeUnit)
throws TransactionFailureException,
InterruptedException,
TimeoutException
FenceWaitIf a fence wait times out then it means there are still some readers with in-progress transactions that have not seen the change. In this case the wait will have to be retried using the same FenceWait object.
await in interface FenceWaittimeout - Maximum time to waittimeUnit - TimeUnit for timeout and sleepTimeTransactionFailureException - when not able to start fence wait transactionInterruptedException - on any interruptTimeoutException - when timeout is reachedCopyright © 2018 The Apache Software Foundation. All rights reserved.