public interface FenceWait
void await(long timeout, TimeUnit timeUnit) throws TransactionFailureException, InterruptedException, TimeoutException
If 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.
timeout
- Maximum time to waittimeUnit
- TimeUnit
for timeout and sleepTimeTransactionFailureException
- when not able to start fence wait transactionInterruptedException
- on any interruptTimeoutException
- when timeout is reachedCopyright © 2016 The Apache Software Foundation. All rights reserved.