public interface ClusteringDependentLogic
Modifier and Type | Interface and Description |
---|---|
static class |
ClusteringDependentLogic.AbstractClusteringDependentLogic |
static class |
ClusteringDependentLogic.DistributionLogic
This logic is used in distributed mode caches.
|
static class |
ClusteringDependentLogic.InvalidationLogic
This logic is used in invalidation mode caches.
|
static class |
ClusteringDependentLogic.LocalLogic
This logic is used in local mode caches.
|
static class |
ClusteringDependentLogic.ReplicationLogic
This logic is used in replicated mode caches.
|
Modifier and Type | Field and Description |
---|---|
static Address |
LOCAL_MODE_ADDRESS |
Modifier and Type | Method and Description |
---|---|
void |
commitEntry(CacheEntry entry,
Metadata metadata,
FlagAffectedCommand command,
InvocationContext ctx) |
EntryVersionsMap |
createNewVersionsAndCheckForWriteSkews(VersionGenerator versionGenerator,
TxInvocationContext context,
VersionedPrepareCommand prepareCommand) |
Address |
getAddress() |
List<Address> |
getOwners(Collection<Object> keys) |
List<Address> |
getOwners(Object key) |
Address |
getPrimaryOwner(Object key) |
boolean |
localNodeIsOwner(Object key) |
boolean |
localNodeIsPrimaryOwner(Object key) |
boolean |
lock(Object key,
boolean noWaitTime)
Acquires internal lock to interact with DataContainer
|
void |
unlock(Object key) |
static final Address LOCAL_MODE_ADDRESS
boolean localNodeIsOwner(Object key)
boolean localNodeIsPrimaryOwner(Object key)
void commitEntry(CacheEntry entry, Metadata metadata, FlagAffectedCommand command, InvocationContext ctx)
List<Address> getOwners(Collection<Object> keys)
EntryVersionsMap createNewVersionsAndCheckForWriteSkews(VersionGenerator versionGenerator, TxInvocationContext context, VersionedPrepareCommand prepareCommand)
Address getAddress()
boolean lock(Object key, boolean noWaitTime) throws InterruptedException
noWaitTime
- if true
, it tries to acquire the lock without waitingtrue
if the lock was acquired.InterruptedException
- if interrupted while waiting.void unlock(Object key)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.