Class ClusteringDependentLogic.LocalLogic
java.lang.Object
org.infinispan.interceptors.locking.ClusteringDependentLogic.AbstractClusteringDependentLogic
org.infinispan.interceptors.locking.ClusteringDependentLogic.LocalLogic
- All Implemented Interfaces:
ClusteringDependentLogic,PersistenceManager.StoreChangeListener
- Enclosing interface:
ClusteringDependentLogic
public static class ClusteringDependentLogic.LocalLogic
extends ClusteringDependentLogic.AbstractClusteringDependentLogic
This logic is used in local mode caches.
-
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 -
Field Summary
Fields inherited from class org.infinispan.interceptors.locking.ClusteringDependentLogic.AbstractClusteringDependentLogic
activationManager, commitManager, componentRegistry, configuration, dataContainer, distributionManager, evictionManager, functionalNotifier, keyPartioner, keyPartitioner, notifier, orderer, persistenceManager, timeService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletionStage<Void> commitSingleEntry(CacheEntry entry, FlagAffectedCommand command, InvocationContext ctx, Flag trackFlag, boolean l1Invalidation) commitType(FlagAffectedCommand command, InvocationContext ctx, int segment, boolean removed) Determines what type of commit this is.voidinit(Transport transport, Configuration configuration, KeyPartitioner keyPartitioner) protected WriteSkewHelper.KeySpecificLogicMethods inherited from class org.infinispan.interceptors.locking.ClusteringDependentLogic.AbstractClusteringDependentLogic
clusterCommitType, commitEntry, createNewVersionsAndCheckForWriteSkews, getEntryLoader, start, stop, storeChanged
-
Constructor Details
-
LocalLogic
public LocalLogic()
-
-
Method Details
-
init
-
getCacheTopology
- Specified by:
getCacheTopologyin interfaceClusteringDependentLogic- Overrides:
getCacheTopologyin classClusteringDependentLogic.AbstractClusteringDependentLogic- Returns:
- information about the location of keys.
-
getAddress
- Specified by:
getAddressin interfaceClusteringDependentLogic- Overrides:
getAddressin classClusteringDependentLogic.AbstractClusteringDependentLogic
-
commitType
public ClusteringDependentLogic.Commit commitType(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 interfaceClusteringDependentLogic- Overrides:
commitTypein classClusteringDependentLogic.AbstractClusteringDependentLogic- Parameters:
command-ctx-segment- if 0 or greater assumes the underlying container is segmented.removed-- Returns:
-
commitSingleEntry
protected CompletionStage<Void> commitSingleEntry(CacheEntry entry, FlagAffectedCommand command, InvocationContext ctx, Flag trackFlag, boolean l1Invalidation) - Specified by:
commitSingleEntryin classClusteringDependentLogic.AbstractClusteringDependentLogic
-
initKeySpecificLogic
- Specified by:
initKeySpecificLogicin classClusteringDependentLogic.AbstractClusteringDependentLogic
-