Package org.infinispan.scattered.impl
Class ScatteredPartitionHandlingManagerImpl
- java.lang.Object
-
- org.infinispan.partitionhandling.impl.PartitionHandlingManagerImpl
-
- org.infinispan.scattered.impl.ScatteredPartitionHandlingManagerImpl
-
- All Implemented Interfaces:
PartitionHandlingManager
public class ScatteredPartitionHandlingManagerImpl extends PartitionHandlingManagerImpl
-
-
Field Summary
-
Fields inherited from class org.infinispan.partitionhandling.impl.PartitionHandlingManagerImpl
distributionManager
-
-
Constructor Summary
Constructors Constructor Description ScatteredPartitionHandlingManagerImpl(Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doCheck(Object key, boolean isWrite, long flagBitSet)
protected boolean
isKeyOperationAllowed(boolean isWrite, long flagBitSet, LocalizedCacheTopology cacheTopology, Object key)
Check if a read/write operation is allowed with the actual members-
Methods inherited from class org.infinispan.partitionhandling.impl.PartitionHandlingManagerImpl
addPartialCommit1PCTransaction, addPartialCommit2PCTransaction, addPartialRollbackTransaction, canRollbackTransactionAfterOriginatorLeave, checkBulkRead, checkClear, checkRead, checkWrite, getAvailabilityMode, getLastStableTopology, getPartialTransactions, getPartitionHandling, isTransactionPartiallyCommitted, onTopologyUpdate, setAvailabilityMode
-
-
-
-
Constructor Detail
-
ScatteredPartitionHandlingManagerImpl
public ScatteredPartitionHandlingManagerImpl(Configuration configuration)
-
-
Method Detail
-
doCheck
public void doCheck(Object key, boolean isWrite, long flagBitSet)
- Overrides:
doCheck
in classPartitionHandlingManagerImpl
-
isKeyOperationAllowed
protected boolean isKeyOperationAllowed(boolean isWrite, long flagBitSet, LocalizedCacheTopology cacheTopology, Object key)
Description copied from class:PartitionHandlingManagerImpl
Check if a read/write operation is allowed with the actual members- Overrides:
isKeyOperationAllowed
in classPartitionHandlingManagerImpl
- Parameters:
isWrite
-false
for reads,true
for writesflagBitSet
- reads with theFlag.FORCE_WRITE_LOCK
are treated as writescacheTopology
- actual members, ornull
for bulk operationskey
- key owners, ornull
for bulk operations- Returns:
true
if the operation is allowed,false
otherwise.
-
-