org.infinispan.interceptors.locking
Interface ClusteringDependentLogic

All Known Implementing Classes:
ClusteringDependentLogic.AllNodesLogic, ClusteringDependentLogic.DistributionLogic

public interface ClusteringDependentLogic

Abstractization for logic related to different clustering modes: replicated or distributed. This implements the Bridge pattern as described by the GoF: this plays the role of the Implementor and various LockingInterceptors are the Abstraction.

Since:
5.1
Author:
Mircea Markus

Nested Class Summary
static class ClusteringDependentLogic.AllNodesLogic
          This logic is used when a changing a key affects all the nodes in the cluster, e.g.
static class ClusteringDependentLogic.DistributionLogic
           
 
Field Summary
static Log log
           
 
Method Summary
 void commitEntry(CacheEntry entry, EntryVersion newVersion, boolean skipOwnershipCheck)
           
 EntryVersionsMap createNewVersionsAndCheckForWriteSkews(VersionGenerator versionGenerator, TxInvocationContext context, VersionedPrepareCommand prepareCommand)
           
 Address getAddress()
           
 Collection<Address> getOwners(Collection<Object> keys)
           
 boolean localNodeIsOwner(Object key)
           
 boolean localNodeIsPrimaryOwner(Object key)
           
 

Field Detail

log

static final Log log
Method Detail

localNodeIsOwner

boolean localNodeIsOwner(Object key)

localNodeIsPrimaryOwner

boolean localNodeIsPrimaryOwner(Object key)

commitEntry

void commitEntry(CacheEntry entry,
                 EntryVersion newVersion,
                 boolean skipOwnershipCheck)

getOwners

Collection<Address> getOwners(Collection<Object> keys)

createNewVersionsAndCheckForWriteSkews

EntryVersionsMap createNewVersionsAndCheckForWriteSkews(VersionGenerator versionGenerator,
                                                        TxInvocationContext context,
                                                        VersionedPrepareCommand prepareCommand)

getAddress

Address getAddress()

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.