public class GridNearOptimisticTxPrepareFuture extends GridNearOptimisticTxPrepareFutureAdapter
GridNearOptimisticTxPrepareFutureAdapter.KeyLockFuture
Constructor and Description |
---|
GridNearOptimisticTxPrepareFuture(GridCacheSharedContext cctx,
GridNearTxLocal tx) |
Modifier and Type | Method and Description |
---|---|
boolean |
onDone(IgniteInternalTx t,
Throwable err)
Callback to notify that future is finished.
|
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
boolean |
onOwnerChanged(GridCacheEntryEx entry,
GridCacheMvccCandidate owner) |
void |
onResult(UUID nodeId,
GridNearTxPrepareResponse res) |
protected void |
prepare0(boolean remap,
boolean topLocked)
Initializes future.
|
Set<IgniteTxKey> |
requestedKeys() |
String |
toString() |
prepare, prepareOnTopology, topologyReadLock, topologyReadUnlock
futureId, markNotTrackable, trackable, tx, version
duration, onDone, startTime
add, apply, cancel, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, markInitialized
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
public GridNearOptimisticTxPrepareFuture(GridCacheSharedContext cctx, GridNearTxLocal tx)
cctx
- Context.tx
- Transaction.public boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
entry
- Entry which received new owner.owner
- Owner.True
if future cares about this entry.public boolean onNodeLeft(UUID nodeId)
nodeId
- Left node ID.True
if future cared about this node.public void onResult(UUID nodeId, GridNearTxPrepareResponse res)
onResult
in class GridNearTxPrepareFutureAdapter
nodeId
- Sender.res
- Result.public Set<IgniteTxKey> requestedKeys()
MiniFuture
isn't completed.public boolean onDone(IgniteInternalTx t, Throwable err)
null
exception is passed in
the result value will be ignored.onDone
in class GridFutureAdapter<IgniteInternalTx>
t
- Optional result.err
- Optional error.True
if result was set by this call.protected void prepare0(boolean remap, boolean topLocked)
prepare0
in class GridNearOptimisticTxPrepareFutureAdapter
remap
- Remap flag.topLocked
- True
if thread already acquired lock preventing topology change.public String toString()
toString
in class GridCompoundFuture<GridNearTxPrepareResponse,IgniteInternalTx>
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017