public final class GridNearLockFuture<K,V> extends GridCompoundIdentityFuture<Boolean> implements GridCacheMvccFuture<K,V,Boolean>
AbstractQueuedSynchronizer.ConditionObjectctx| Constructor and Description |
|---|
GridNearLockFuture()
Empty constructor required by
Externalizable. |
GridNearLockFuture(GridCacheContext<K,V> cctx,
Collection<? extends K> keys,
GridNearTxLocal<K,V> tx,
boolean read,
boolean retval,
long timeout,
long accessTtl,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Default no-op implementation that always returns
false. |
void |
complete(boolean success) |
List<GridDistributedCacheEntry<K,V>> |
entriesCopy() |
IgniteUuid |
futureId() |
int |
hashCode() |
void |
markNotTrackable()
Marks this future as non-trackable.
|
Collection<? extends ClusterNode> |
nodes() |
boolean |
onDone(Boolean success,
Throwable err)
Callback to notify that future is finished.
|
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
boolean |
onOwnerChanged(GridCacheEntryEx<K,V> entry,
GridCacheMvccCandidate<K> owner)
Callback for whenever entry lock ownership changes.
|
String |
toString() |
boolean |
trackable() |
GridCacheVersion |
version() |
add, addAll, addAll, futures, hasPending, ignoreChildFailures, initialized, markInitialized, pending, reducer, reducerchain, 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, equals, finalize, getClass, notify, notifyAll, wait, wait, waitchain, concurrentNotify, concurrentNotify, duration, get, get, get, isCancelled, isDone, listenAsync, startTime, stopListenAsync, syncNotify, syncNotifypublic GridNearLockFuture()
Externalizable.public GridNearLockFuture(GridCacheContext<K,V> cctx, Collection<? extends K> keys, @Nullable GridNearTxLocal<K,V> tx, boolean read, boolean retval, long timeout, long accessTtl, IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter)
cctx - Registry.keys - Keys to lock.tx - Transaction.read - Read flag.retval - Flag to return value or not.timeout - Lock acquisition timeout.accessTtl - TTL for read operation.filter - Filter.public Collection<? extends ClusterNode> nodes()
nodes in interface GridCacheFuture<Boolean>public GridCacheVersion version()
version in interface GridCacheFuture<Boolean>public List<GridDistributedCacheEntry<K,V>> entriesCopy()
public IgniteUuid futureId()
futureId in interface GridCacheFuture<Boolean>public boolean trackable()
trackable in interface GridCacheFuture<Boolean>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<Boolean>public void complete(boolean success)
success - Success flag.public boolean onNodeLeft(UUID nodeId)
GridCacheFutureonNodeLeft in interface GridCacheFuture<Boolean>nodeId - Left node IDTrue if node was in the list.public boolean onOwnerChanged(GridCacheEntryEx<K,V> entry, GridCacheMvccCandidate<K> owner)
onOwnerChanged in interface GridCacheMvccFuture<K,V,Boolean>entry - Entry whose lock ownership changed.owner - Owner.True if future cares about this entry.public boolean cancel()
false.
Futures that do support cancellation should override this method
and call GridFutureAdapter.onCancelled() callback explicitly if cancellation
indeed did happen.cancel in interface IgniteInternalFuture<Boolean>cancel in class GridCompoundFuture<Boolean,Boolean>True if future was canceled (i.e. was not finished prior to this call).public boolean onDone(Boolean success, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<Boolean>success - Optional result.err - Optional error.True if result was set by this call.public String toString()
toString in class GridCompoundIdentityFuture<Boolean>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015