public interface RebalanceOperation
Cache.| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancels this rebalance operation.
|
RebalanceResults |
getResults()
Wait for this operation to complete and return the results.
|
RebalanceResults |
getResults(long timeout,
TimeUnit unit)
Wait for this operation to complete and return the results.
|
boolean |
isCancelled()
Returns true if this operation was cancelled before it completed.
|
boolean |
isDone()
Returns true if this operation completed.
|
boolean isCancelled()
boolean isDone()
boolean cancel()
RebalanceResults getResults() throws CancellationException, InterruptedException
CancellationException - if the operation was cancelledInterruptedException - if the wait was interruptedRebalanceResults getResults(long timeout, TimeUnit unit) throws CancellationException, TimeoutException, InterruptedException
timeout - the maximum time to waitunit - the time unit of the timeout argumentCancellationException - if the operation was cancelledTimeoutException - if the wait timed outInterruptedException - if the wait was interrupted