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 theDataOperationOrderer
component.
-
-
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.Commit
commitType(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)
Address
getAddress()
LocalizedCacheTopology
getCacheTopology()
void
start()
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:ClusteringDependentLogic
Starts the object - must be first wired via component registry- Specified by:
start
in interfaceClusteringDependentLogic
-
getCacheTopology
public LocalizedCacheTopology getCacheTopology()
- Specified by:
getCacheTopology
in 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:ClusteringDependentLogic
Commits 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:
commitEntry
in 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:ClusteringDependentLogic
Determines 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:
commitType
in interfaceClusteringDependentLogic
segment
- 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:
createNewVersionsAndCheckForWriteSkews
in interfaceClusteringDependentLogic
-
getAddress
public Address getAddress()
- Specified by:
getAddress
in interfaceClusteringDependentLogic
-
-