public abstract static class ClusteringDependentLogic.AbstractClusteringDependentLogic extends Object implements ClusteringDependentLogic
ClusteringDependentLogic.AbstractClusteringDependentLogic, ClusteringDependentLogic.Commit, ClusteringDependentLogic.DistributionLogic, ClusteringDependentLogic.InvalidationLogic, ClusteringDependentLogic.LocalLogic, ClusteringDependentLogic.ReplicationLogic, ClusteringDependentLogic.ScatteredLogic
Modifier and Type | Field and Description |
---|---|
protected CommitManager |
commitManager |
protected ComponentRegistry |
componentRegistry |
protected Configuration |
configuration |
protected InternalDataContainer<Object,Object> |
dataContainer |
protected DistributionManager |
distributionManager |
protected EvictionManager<?,?> |
evictionManager |
protected FunctionalNotifier<Object,Object> |
functionalNotifier |
protected KeyPartitioner |
keyPartitioner |
protected CacheNotifier<Object,Object> |
notifier |
protected PersistenceManager |
persistenceManager |
protected TimeService |
timeService |
Constructor and Description |
---|
AbstractClusteringDependentLogic() |
protected ComponentRegistry componentRegistry
protected DistributionManager distributionManager
protected InternalDataContainer<Object,Object> dataContainer
protected CacheNotifier<Object,Object> notifier
protected CommitManager commitManager
protected PersistenceManager persistenceManager
protected TimeService timeService
protected FunctionalNotifier<Object,Object> functionalNotifier
protected Configuration configuration
protected KeyPartitioner keyPartitioner
protected EvictionManager<?,?> evictionManager
public void start()
ClusteringDependentLogic
start
in interface ClusteringDependentLogic
public CompletionStage<Map<Object,IncrementableEntryVersion>> createNewVersionsAndCheckForWriteSkews(VersionGenerator versionGenerator, TxInvocationContext context, VersionedPrepareCommand prepareCommand)
createNewVersionsAndCheckForWriteSkews
in interface ClusteringDependentLogic
public final CompletionStage<Void> commitEntry(CacheEntry entry, FlagAffectedCommand command, InvocationContext ctx, Flag trackFlag, boolean l1Invalidation)
ClusteringDependentLogic
commitEntry
in interface ClusteringDependentLogic
protected abstract CompletionStage<Void> commitSingleEntry(CacheEntry entry, FlagAffectedCommand command, InvocationContext ctx, Flag trackFlag, boolean l1Invalidation)
protected ClusteringDependentLogic.Commit clusterCommitType(FlagAffectedCommand command, InvocationContext ctx, int segment, boolean removed)
public ClusteringDependentLogic.Commit commitType(FlagAffectedCommand command, InvocationContext ctx, int segment, boolean removed)
ClusteringDependentLogic
commitType
in interface ClusteringDependentLogic
segment
- if 0 or greater assumes the underlying container is segmented.protected abstract WriteSkewHelper.KeySpecificLogic initKeySpecificLogic()
public LocalizedCacheTopology getCacheTopology()
getCacheTopology
in interface ClusteringDependentLogic
public Address getAddress()
getAddress
in interface ClusteringDependentLogic
public final <K,V> EntryLoader<K,V> getEntryLoader()
getEntryLoader
in interface ClusteringDependentLogic
Copyright © 2021 JBoss by Red Hat. All rights reserved.