public final class GridNearGetFuture<K,V> extends CacheDistributedGetFutureAdapter<K,V>
AbstractQueuedSynchronizer.ConditionObject
canRemap, cctx, deserializeBinary, DFLT_MAX_REMAP_CNT, expiryPlc, forcePrimary, futId, keepCacheObjects, keys, MAX_REMAP_CNT, needVer, readThrough, REMAP_CNT_UPD, remapCnt, skipVals, subjId, taskName, trackable
sync
Constructor and Description |
---|
GridNearGetFuture(GridCacheContext<K,V> cctx,
Collection<KeyCacheObject> keys,
boolean readThrough,
boolean forcePrimary,
IgniteTxLocalEx tx,
UUID subjId,
String taskName,
boolean deserializeBinary,
IgniteCacheExpiryPolicy expiryPlc,
boolean skipVals,
boolean canRemap,
boolean needVer,
boolean keepCacheObjects) |
Modifier and Type | Method and Description |
---|---|
IgniteUuid |
futureId() |
void |
init(AffinityTopologyVersion topVer)
Initializes future.
|
void |
markNotTrackable()
Marks this future as non-trackable.
|
boolean |
onDone(Map<K,V> res,
Throwable err)
Callback to notify that future is finished.
|
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
void |
onResult(UUID nodeId,
GridNearGetResponse res) |
String |
toString() |
boolean |
trackable() |
affinityNode, partitionOwned, serverNotFoundError
add, apply, cancel, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, markInitialized
chain, chain, duration, endTime, error, get, get, get, get0, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, result, startTime, tryAcquireShared, tryReleaseShared
acquire, 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, tryRelease
getExclusiveOwnerThread, setExclusiveOwnerThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cancel, chain, chain, duration, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result, startTime
public GridNearGetFuture(GridCacheContext<K,V> cctx, Collection<KeyCacheObject> keys, boolean readThrough, boolean forcePrimary, @Nullable IgniteTxLocalEx tx, @Nullable UUID subjId, String taskName, boolean deserializeBinary, @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals, boolean canRemap, boolean needVer, boolean keepCacheObjects)
cctx
- Context.keys
- Keys.readThrough
- Read through flag.forcePrimary
- If true
get will be performed on primary node even if
called on backup node.tx
- Transaction.subjId
- Subject ID.taskName
- Task name.deserializeBinary
- Deserialize binary flag.expiryPlc
- Expiry policy.skipVals
- Skip values flag.canRemap
- Flag indicating whether future can be remapped on a newer topology version.needVer
- If true
returns values as tuples containing value and version.keepCacheObjects
- Keep cache objects flag.public void init(@Nullable AffinityTopologyVersion topVer)
topVer
- Topology version.public boolean trackable()
True
if future should be tracked.public void markNotTrackable()
public IgniteUuid futureId()
public boolean onNodeLeft(UUID nodeId)
nodeId
- Left node ID.True
if future cared about this node.public void onResult(UUID nodeId, GridNearGetResponse res)
nodeId
- Sender.res
- Result.public boolean onDone(Map<K,V> res, Throwable err)
null
exception is passed in
the result value will be ignored.onDone
in class GridFutureAdapter<Map<K,V>>
res
- Optional result.err
- Optional error.True
if result was set by this call.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017