public final class GridDhtTxEnlistFuture extends GridDhtTxAbstractEnlistFuture<GridCacheReturn> implements UpdateSourceIterator<Object>
GridDhtTxAbstractEnlistFuture.LockTimeoutObjectcctx, futId, hasNearNodeUpdates, keepBinary, lockVer, log, mvccSnapshot, nearFutId, nearLockVer, nearMiniId, nearNodeId, newDhtNodes, skipNearNodeUpdates, threadId, timeout, timeoutObj, tx| Constructor and Description |
|---|
GridDhtTxEnlistFuture(UUID nearNodeId,
GridCacheVersion nearLockVer,
MvccSnapshot mvccSnapshot,
long threadId,
IgniteUuid nearFutId,
int nearMiniId,
GridDhtTxLocalAdapter tx,
long timeout,
GridCacheContext<?,?> cctx,
Collection<Object> rows,
EnlistOperation op,
@Nullable CacheEntryPredicate filter,
boolean needRes,
boolean keepBinary)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected UpdateSourceIterator<?> |
createIterator()
Gets source to be updated iterator.
|
boolean |
hasNextX()
This method is the same as
Iterator.hasNext(), but allows for failure
with exception. |
boolean |
needResult()
Gets need previous value flag.
|
Object |
nextX()
This method is the same as
Iterator.next(), but allows for failure
with exception. |
protected void |
onEntryProcessed(KeyCacheObject key,
GridCacheUpdateTxResult txRes)
Entry processed callback.
|
EnlistOperation |
operation() |
protected @Nullable GridCacheReturn |
result0()
Gets query result.
|
String |
toString() |
clearLockFuture, futureId, init, markNotTrackable, onDone, onError, onNodeLeft, onResult, timeoutException, trackableduration, onDone, startTimecancel, chain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, reset, resultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbeforeDetach, close, hasNext, isClosed, iterator, next, remove, removeXforEach, spliteratorforEachRemainingcancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultpublic GridDhtTxEnlistFuture(UUID nearNodeId, GridCacheVersion nearLockVer, MvccSnapshot mvccSnapshot, long threadId, IgniteUuid nearFutId, int nearMiniId, GridDhtTxLocalAdapter tx, long timeout, GridCacheContext<?,?> cctx, Collection<Object> rows, EnlistOperation op, @Nullable @Nullable CacheEntryPredicate filter, boolean needRes, boolean keepBinary)
nearNodeId - Near node ID.nearLockVer - Near lock version.mvccSnapshot - Mvcc snapshot.threadId - Thread ID.nearFutId - Near future id.nearMiniId - Near mini future id.tx - Transaction.timeout - Lock acquisition timeout.cctx - Cache context.rows - Collection of rows.op - Operation.filter - Filter.needRes - Return previous value flag.keepBinary - Keep binary flag.protected UpdateSourceIterator<?> createIterator() throws IgniteCheckedException
createIterator in class GridDhtTxAbstractEnlistFuture<GridCacheReturn>IgniteCheckedException - If failed.@Nullable protected @Nullable GridCacheReturn result0()
result0 in class GridDhtTxAbstractEnlistFuture<GridCacheReturn>protected void onEntryProcessed(KeyCacheObject key, GridCacheUpdateTxResult txRes)
onEntryProcessed in class GridDhtTxAbstractEnlistFuture<GridCacheReturn>key - Entry key.txRes - Update result.public boolean needResult()
needResult in class GridDhtTxAbstractEnlistFuture<GridCacheReturn>True if previous value is required.public EnlistOperation operation()
operation in interface UpdateSourceIterator<Object>public boolean hasNextX()
Iterator.hasNext(), but allows for failure
with exception. Often iterators are used to iterate through values
that have not or have partially been received from remote nodes,
and need to account for possible network failures, rather than
just returning false out of Iterator.hasNext() method.hasNextX in interface GridIterator<Object>True if iterator contains more elements.Iterator.hasNext()public Object nextX()
Iterator.next(), but allows for failure
with exception. Often iterators are used to iterate through values
that have not or have partially been received from remote nodes,
and need to account for possible network failures, rather than
throwing NoSuchElementException runtime exception.snextX in interface GridIterator<Object>True if iterator contains more elements.Iterator.next()public String toString()
toString in class GridFutureAdapter<GridCacheReturn>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020