public abstract class GridDhtAtomicAbstractUpdateFuture extends GridCacheFutureAdapter<Void> implements GridCacheAtomicFuture<Void>
Modifier and Type | Field and Description |
---|---|
protected GridCacheContext |
cctx
Cache context.
|
protected long |
futId
Future version.
|
protected static IgniteLogger |
log
Logger.
|
protected Map<UUID,GridDhtAtomicAbstractUpdateRequest> |
mappings
Mappings.
|
protected static IgniteLogger |
msgLog
Logger.
|
protected GridCacheVersion |
writeVer
Write version.
|
Modifier | Constructor and Description |
---|---|
protected |
GridDhtAtomicAbstractUpdateFuture(GridCacheContext cctx,
GridCacheVersion writeVer,
GridNearAtomicAbstractUpdateRequest updateReq) |
Modifier and Type | Method and Description |
---|---|
void |
addContinuousQueryClosure(CI1<Boolean> clsr,
boolean sync) |
protected abstract void |
addDhtKey(KeyCacheObject key,
List<ClusterNode> dhtNodes) |
protected abstract void |
addNearKey(KeyCacheObject key,
Collection<UUID> readers) |
IgniteInternalFuture<Void> |
completeFuture(AffinityTopologyVersion topVer)
Gets future that will be completed when it is safe when update is finished on the given version of topology.
|
protected abstract GridDhtAtomicAbstractUpdateRequest |
createRequest(UUID nodeId,
long futId,
GridCacheVersion writeVer,
CacheWriteSynchronizationMode syncMode,
AffinityTopologyVersion topVer,
long ttl,
long conflictExpireTime,
GridCacheVersion conflictVer) |
IgniteUuid |
futureId() |
void |
markNotTrackable()
Marks this future as non-trackable.
|
boolean |
onDone(Void res,
Throwable err)
Callback to notify that future is finished.
|
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
protected abstract boolean |
sendAllToDht() |
String |
toString() |
boolean |
trackable() |
duration, onDone, startTime
cancel, chain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, result
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
duration, startTime
cancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result
protected static IgniteLogger log
protected static IgniteLogger msgLog
protected final GridCacheVersion writeVer
protected final GridCacheContext cctx
@GridToStringInclude protected final long futId
@GridToStringExclude protected Map<UUID,GridDhtAtomicAbstractUpdateRequest> mappings
protected GridDhtAtomicAbstractUpdateFuture(GridCacheContext cctx, GridCacheVersion writeVer, GridNearAtomicAbstractUpdateRequest updateReq)
cctx
- Cache context.writeVer
- Write version.updateReq
- Update request.protected abstract boolean sendAllToDht()
True
if all updates are sent to DHT.public final IgniteInternalFuture<Void> completeFuture(AffinityTopologyVersion topVer)
completeFuture
in interface GridCacheAtomicFuture<Void>
topVer
- Topology version to finish.null
if no need to wait.public final void addContinuousQueryClosure(CI1<Boolean> clsr, boolean sync)
clsr
- Continuous query closure.sync
- Synchronous continuous query flag.protected abstract void addDhtKey(KeyCacheObject key, List<ClusterNode> dhtNodes)
key
- Key.dhtNodes
- DHT nodes.protected abstract void addNearKey(KeyCacheObject key, Collection<UUID> readers)
key
- Key.readers
- Near cache readers.public final IgniteUuid futureId()
futureId
in interface GridCacheFuture<Void>
public final boolean onNodeLeft(UUID nodeId)
onNodeLeft
in interface GridCacheFuture<Void>
nodeId
- Left node ID.True
if future cared about this node.protected abstract GridDhtAtomicAbstractUpdateRequest createRequest(UUID nodeId, long futId, GridCacheVersion writeVer, CacheWriteSynchronizationMode syncMode, @NotNull AffinityTopologyVersion topVer, long ttl, long conflictExpireTime, @Nullable GridCacheVersion conflictVer)
nodeId
- Node ID.futId
- Future ID.writeVer
- Update version.syncMode
- Write synchronization mode.topVer
- Topology version.ttl
- TTL.conflictExpireTime
- Conflict expire time.conflictVer
- Conflict version.public final boolean onDone(@Nullable Void res, @Nullable Throwable err)
null
exception is passed in
the result value will be ignored.onDone
in class GridFutureAdapter<Void>
res
- Optional result.err
- Optional error.True
if result was set by this call.public boolean trackable()
trackable
in interface GridCacheFuture<Void>
True
if future should be tracked.public void markNotTrackable()
markNotTrackable
in interface GridCacheFuture<Void>
public String toString()
toString
in class GridFutureAdapter<Void>
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017