public class GridDhtPartitionsExchangeFuture<K,V> extends GridFutureAdapter<Long> implements Comparable<GridDhtPartitionsExchangeFuture<K,V>>, GridDhtTopologyFuture
AbstractQueuedSynchronizer.ConditionObjectctx| Constructor and Description |
|---|
GridDhtPartitionsExchangeFuture()
Empty constructor required for
Externalizable. |
GridDhtPartitionsExchangeFuture(GridCacheContext<K,V> cctx,
boolean reassign,
GridDiscoveryEvent discoEvt,
GridDhtPartitionExchangeId exchId)
Dummy future created to trigger reassignments if partition
topology changed while preloading.
|
GridDhtPartitionsExchangeFuture(GridCacheContext<K,V> cctx,
GridDiscoveryEvent discoEvt,
GridDhtPartitionExchangeId exchId)
Force preload future created to trigger reassignments if partition
topology changed while preloading.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(GridDhtPartitionsExchangeFuture<K,V> fut) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
onDone(Long res,
Throwable err)
Callback to notify that future is finished.
|
void |
onNodeLeft(UUID nodeId) |
GridDiscoveryTopologySnapshot |
topologySnapshot()
Gets a topology snapshot for the topology version represented by the future.
|
String |
toString() |
cancel, chain, checkValid, concurrentNotify, concurrentNotify, duration, endTime, error, get, get, get, get0, isCancelled, isDone, isFailed, isValid, listenAsync, onCancelled, onDone, onDone, onDone, readExternal, result, startTime, stopListenAsync, syncNotify, syncNotify, tryAcquireShared, tryReleaseShared, writeExternalacquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryReleasegetExclusiveOwnerThread, setExclusiveOwnerThreadclone, finalize, getClass, notify, notifyAll, wait, wait, waitcancel, chain, concurrentNotify, concurrentNotify, duration, get, get, get, isCancelled, isDone, listenAsync, startTime, stopListenAsync, syncNotify, syncNotifypublic GridDhtPartitionsExchangeFuture(GridCacheContext<K,V> cctx, boolean reassign, GridDiscoveryEvent discoEvt, GridDhtPartitionExchangeId exchId)
cctx - Cache context.reassign - Dummy reassign flag.discoEvt - Discovery event.exchId - Exchange id.public GridDhtPartitionsExchangeFuture(GridCacheContext<K,V> cctx, GridDiscoveryEvent discoEvt, GridDhtPartitionExchangeId exchId)
cctx - Cache context.discoEvt - Discovery event.exchId - Exchange id.public GridDhtPartitionsExchangeFuture()
Externalizable.public GridDiscoveryTopologySnapshot topologySnapshot() throws GridException
topologySnapshot in interface GridDhtTopologyFutureGridException - If topology future failed.public boolean onDone(Long res, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<Long>res - Optional result.err - Optional error.True if result was set by this call.public void onNodeLeft(UUID nodeId)
nodeId - Left node id.public int compareTo(GridDhtPartitionsExchangeFuture<K,V> fut)
compareTo in interface Comparable<GridDhtPartitionsExchangeFuture<K,V>>public String toString()
toString in class GridFutureAdapter<Long>Copyright © 2014. All rights reserved.