public final class GridDhtColocatedLockFuture extends GridCacheCompoundIdentityFuture<Boolean> implements GridCacheVersionedFuture<Boolean>, IgniteDiagnosticAware
| Constructor and Description |
|---|
GridDhtColocatedLockFuture(GridCacheContext<?,?> cctx,
Collection<KeyCacheObject> keys,
GridNearTxLocal tx,
boolean read,
boolean retval,
long timeout,
long createTtl,
long accessTtl,
CacheEntryPredicate[] filter,
boolean skipStore,
boolean keepBinary,
boolean recovery) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDiagnosticRequest(IgniteDiagnosticPrepareContext ctx) |
boolean |
cancel()
Cancellation has special meaning for lock futures.
|
void |
complete(boolean success) |
IgniteUuid |
futureId() |
int |
hashCode() |
void |
markNotTrackable()
Marks this future as non-trackable.
|
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 entry,
GridCacheMvccCandidate owner) |
Set<IgniteTxKey> |
requestedKeys() |
String |
toString() |
boolean |
trackable() |
GridCacheVersion |
version() |
duration, onDone, startTimeadd, apply, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, logDebug, logError, markInitialized, processFailurechain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, reset, resultclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitduration, startTimechain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultpublic GridDhtColocatedLockFuture(GridCacheContext<?,?> cctx, Collection<KeyCacheObject> keys, @Nullable GridNearTxLocal tx, boolean read, boolean retval, long timeout, long createTtl, long accessTtl, CacheEntryPredicate[] filter, boolean skipStore, boolean keepBinary, boolean recovery)
cctx - Registry.keys - Keys to lock.tx - Transaction.read - Read flag.retval - Flag to return value or not.timeout - Lock acquisition timeout.createTtl - TTL for create operation.accessTtl - TTL for read operation.filter - Filter.skipStore - Skip store flag.public GridCacheVersion version()
version in interface GridCacheVersionedFuture<Boolean>public boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
onOwnerChanged in interface GridCacheVersionedFuture<Boolean>entry - Entry which received new owner.owner - Owner.True if future cares about this entry.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 Set<IgniteTxKey> requestedKeys()
public boolean cancel()
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 void addDiagnosticRequest(IgniteDiagnosticPrepareContext ctx)
addDiagnosticRequest in interface IgniteDiagnosticAwarectx - Context.public String toString()
toString in class GridCompoundIdentityFuture<Boolean>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019