Class GridNearOptimisticSerializableTxPrepareFuture
- java.lang.Object
-
- org.apache.ignite.internal.util.future.GridFutureAdapter<R>
-
- org.apache.ignite.internal.util.future.GridCompoundFuture<T,R>
-
- org.apache.ignite.internal.processors.cache.GridCacheCompoundFuture<Object,IgniteInternalTx>
-
- org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxPrepareFutureAdapter
-
- org.apache.ignite.internal.processors.cache.distributed.near.GridNearOptimisticTxPrepareFutureAdapter
-
- org.apache.ignite.internal.processors.cache.distributed.near.GridNearOptimisticSerializableTxPrepareFuture
-
- All Implemented Interfaces:
Serializable,IgniteInternalFuture<IgniteInternalTx>,GridCacheFuture<IgniteInternalTx>,GridCacheVersionedFuture<IgniteInternalTx>,IgniteInClosure<IgniteInternalFuture<Object>>
public class GridNearOptimisticSerializableTxPrepareFuture extends GridNearOptimisticTxPrepareFutureAdapter
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.ignite.internal.processors.cache.distributed.near.GridNearOptimisticTxPrepareFutureAdapter
GridNearOptimisticTxPrepareFutureAdapter.KeyLockFuture
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.cache.distributed.near.GridNearOptimisticTxPrepareFutureAdapter
keyLockFut, span
-
-
Constructor Summary
Constructors Constructor Description GridNearOptimisticSerializableTxPrepareFuture(GridCacheSharedContext cctx, GridNearTxLocal tx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanignoreFailure(Throwable err)Checks if this compound future should ignore this particular exception.booleanonDone(IgniteInternalTx t, Throwable err)Callback to notify that future is finished.booleanonNodeLeft(UUID nodeId)Callback for when node left.booleanonOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)voidonResult(UUID nodeId, GridNearTxPrepareResponse res)protected voidprepare0(boolean remap, boolean topLocked)Initializes future.StringtoString()-
Methods inherited from class org.apache.ignite.internal.processors.cache.distributed.near.GridNearOptimisticTxPrepareFutureAdapter
errorOrTimeoutOnTopologyVersion, onNearTxLocalTimeout, prepare, prepareOnTopology, topologyReadLock, topologyReadUnlock
-
Methods inherited from class org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxPrepareFutureAdapter
futureId, markNotTrackable, trackable, tx, version
-
Methods inherited from class org.apache.ignite.internal.processors.cache.GridCacheCompoundFuture
duration, onDone, startTime
-
Methods inherited from class org.apache.ignite.internal.util.future.GridCompoundFuture
add, apply, cancel, clear, compoundsLockedExclusively, compoundsReadLock, compoundsReadUnlock, future, futures, futuresCountNoLock, hasFutures, hasPending, initialized, logDebug, logError, markInitialized, processFailure
-
Methods inherited from class org.apache.ignite.internal.util.future.GridFutureAdapter
chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, listen, logger, onCancelled, onDone, onDone, onDone, reset, result
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.cache.GridCacheFuture
duration, startTime
-
Methods inherited from interface org.apache.ignite.internal.IgniteInternalFuture
cancel, chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, listen, result
-
-
-
-
Constructor Detail
-
GridNearOptimisticSerializableTxPrepareFuture
public GridNearOptimisticSerializableTxPrepareFuture(GridCacheSharedContext cctx, GridNearTxLocal tx)
- Parameters:
cctx- Context.tx- Transaction.
-
-
Method Detail
-
ignoreFailure
protected boolean ignoreFailure(Throwable err)
Checks if this compound future should ignore this particular exception.- Overrides:
ignoreFailurein classGridCompoundFuture<Object,IgniteInternalTx>- Parameters:
err- Exception to check.- Returns:
Trueif this error should be ignored.
-
onOwnerChanged
public boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
- Parameters:
entry- Entry which received new owner.owner- Owner.- Returns:
Trueif future cares about this entry.
-
onNodeLeft
public boolean onNodeLeft(UUID nodeId)
Callback for when node left.- Parameters:
nodeId- Left node ID.- Returns:
Trueif future cared about this node.
-
onResult
public void onResult(UUID nodeId, GridNearTxPrepareResponse res)
- Specified by:
onResultin classGridNearTxPrepareFutureAdapter- Parameters:
nodeId- Sender.res- Result.
-
onDone
public boolean onDone(IgniteInternalTx t, Throwable err)
Callback to notify that future is finished. Note that if non-nullexception is passed in the result value will be ignored.- Overrides:
onDonein classGridFutureAdapter<IgniteInternalTx>- Parameters:
t- Optional result.err- Optional error.- Returns:
Trueif result was set by this call.
-
prepare0
protected void prepare0(boolean remap, boolean topLocked)Initializes future.- Specified by:
prepare0in classGridNearOptimisticTxPrepareFutureAdapter- Parameters:
remap- Remap flag.topLocked-Trueif thread already acquired lock preventing topology change.
-
toString
public String toString()
- Overrides:
toStringin classGridCompoundFuture<Object,IgniteInternalTx>
-
-