Class OrderedClusteringDependentLogic
- java.lang.Object
-
- org.infinispan.interceptors.locking.OrderedClusteringDependentLogic
-
- All Implemented Interfaces:
ClusteringDependentLogic
public class OrderedClusteringDependentLogic extends java.lang.Object implements ClusteringDependentLogic
ClusteringDependentLogic that orders write operations using theDataOperationOrderercomponent.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.interceptors.locking.ClusteringDependentLogic
ClusteringDependentLogic.AbstractClusteringDependentLogic, ClusteringDependentLogic.Commit, ClusteringDependentLogic.DistributionLogic, ClusteringDependentLogic.InvalidationLogic, ClusteringDependentLogic.LocalLogic, ClusteringDependentLogic.ReplicationLogic, ClusteringDependentLogic.ScatteredLogic
-
-
Constructor Summary
Constructors Constructor Description OrderedClusteringDependentLogic(ClusteringDependentLogic cdl, boolean passivation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletionStage<java.lang.Void>commitEntry(CacheEntry entry, org.infinispan.commands.FlagAffectedCommand command, InvocationContext ctx, Flag trackFlag, boolean l1Invalidation)Commits the entry to the data container.ClusteringDependentLogic.CommitcommitType(org.infinispan.commands.FlagAffectedCommand command, InvocationContext ctx, int segment, boolean removed)Determines what type of commit this is.java.util.concurrent.CompletionStage<EntryVersionsMap>createNewVersionsAndCheckForWriteSkews(VersionGenerator versionGenerator, org.infinispan.context.impl.TxInvocationContext context, org.infinispan.commands.tx.VersionedPrepareCommand prepareCommand)AddressgetAddress()LocalizedCacheTopologygetCacheTopology()voidstart()Starts the object - must be first wired via component registry-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.interceptors.locking.ClusteringDependentLogic
getOwners, getOwners, getPrimaryOwner, localNodeIsOwner, localNodeIsPrimaryOwner
-
-
-
-
Constructor Detail
-
OrderedClusteringDependentLogic
public OrderedClusteringDependentLogic(ClusteringDependentLogic cdl, boolean passivation)
-
-
Method Detail
-
start
public void start()
Description copied from interface:ClusteringDependentLogicStarts the object - must be first wired via component registry- Specified by:
startin interfaceClusteringDependentLogic
-
getCacheTopology
public LocalizedCacheTopology getCacheTopology()
- Specified by:
getCacheTopologyin interfaceClusteringDependentLogic- Returns:
- information about the location of keys.
-
commitEntry
public java.util.concurrent.CompletionStage<java.lang.Void> commitEntry(CacheEntry entry, org.infinispan.commands.FlagAffectedCommand command, InvocationContext ctx, Flag trackFlag, boolean l1Invalidation)
Description copied from interface:ClusteringDependentLogicCommits the entry to the data container. The commit operation is always done synchronously in the current thread. However notifications for said operations can be performed asynchronously and the returned CompletionStage will complete when the notifications if any are completed.- Specified by:
commitEntryin interfaceClusteringDependentLogic- Returns:
- completion stage that is complete when all notifications for the commit are complete or null if already complete
-
commitType
public ClusteringDependentLogic.Commit commitType(org.infinispan.commands.FlagAffectedCommand command, InvocationContext ctx, int segment, boolean removed)
Description copied from interface:ClusteringDependentLogicDetermines what type of commit this is. Whether we shouldn't commit, or if this is a commit due to owning the key or not- Specified by:
commitTypein interfaceClusteringDependentLogicsegment- if 0 or greater assumes the underlying container is segmented.- Returns:
-
createNewVersionsAndCheckForWriteSkews
public java.util.concurrent.CompletionStage<EntryVersionsMap> createNewVersionsAndCheckForWriteSkews(VersionGenerator versionGenerator, org.infinispan.context.impl.TxInvocationContext context, org.infinispan.commands.tx.VersionedPrepareCommand prepareCommand)
- Specified by:
createNewVersionsAndCheckForWriteSkewsin interfaceClusteringDependentLogic
-
getAddress
public Address getAddress()
- Specified by:
getAddressin interfaceClusteringDependentLogic
-
-