Package | Description |
---|---|
net.sf.ehcache.config |
This package contains the cache configuration code.
|
net.sf.ehcache.store |
Store package.
|
net.sf.ehcache.store.disk |
This package contains the disk store.
|
net.sf.ehcache.transaction.local |
This package contains the local transactions subsystem.
|
net.sf.ehcache.transaction.xa |
This package contains the functionality to provide XA support to a transactional Cache.
|
net.sf.ehcache.transaction.xa.commands |
This package contains a representation of the queued commands which can be executed against a
XA store.
|
Modifier and Type | Method and Description |
---|---|
ElementValueComparator |
ElementValueComparatorConfiguration.createElementComparatorInstance(CacheConfiguration cacheConfiguration,
ClassLoader loader)
Get (and potentially) instantiate the instance
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultElementValueComparator
DefaultElementValueComparator does compare the values on the two elements
based on their
equals contract |
Modifier and Type | Method and Description |
---|---|
static ElementValueComparator |
TxCopyingCacheStore.wrap(ElementValueComparator comparator,
CacheConfiguration cacheConfiguration)
Wraps the given
ElementValueComparator if the configuration requires copy on read |
static ElementValueComparator |
CopyingCacheStore.wrapIfCopy(ElementValueComparator comparator,
CacheConfiguration cacheConfiguration)
Wraps the given
ElementValueComparator if the configuration requires copy on read |
Modifier and Type | Method and Description |
---|---|
Element |
Store.removeElement(Element element,
ElementValueComparator comparator)
Remove the Element mapped to the key for the supplied element if the value of the supplied Element
is equal to the value of the cached Element.
|
Element |
MemoryStore.removeElement(Element element,
ElementValueComparator comparator)
Remove the Element mapped to the key for the supplied element if the value of the supplied Element
is equal to the value of the cached Element.
|
Element |
CacheStore.removeElement(Element element,
ElementValueComparator comparator) |
Element |
LruMemoryStore.removeElement(Element element,
ElementValueComparator comparator)
Unsupported in LruMemoryStore
|
Element |
ElementIdAssigningStore.removeElement(Element element,
ElementValueComparator comparator)
Remove the Element mapped to the key for the supplied element if the value of the supplied Element
is equal to the value of the cached Element.
|
Element |
LegacyStoreWrapper.removeElement(Element element,
ElementValueComparator comparator)
Remove the Element mapped to the key for the supplied element if the value of the supplied Element
is equal to the value of the cached Element.
|
boolean |
Store.replace(Element old,
Element element,
ElementValueComparator comparator)
Replace the cached element only if the value of the current Element is equal to the value of the
supplied old Element.
|
boolean |
MemoryStore.replace(Element old,
Element element,
ElementValueComparator comparator)
Replace the cached element only if the value of the current Element is equal to the value of the
supplied old Element.
|
boolean |
CacheStore.replace(Element old,
Element element,
ElementValueComparator comparator) |
boolean |
LruMemoryStore.replace(Element old,
Element element,
ElementValueComparator comparator)
Unsupported in LruMemoryStore
|
boolean |
ElementIdAssigningStore.replace(Element old,
Element element,
ElementValueComparator comparator)
Replace the cached element only if the value of the current Element is equal to the value of the
supplied old Element.
|
boolean |
LegacyStoreWrapper.replace(Element old,
Element element,
ElementValueComparator comparator)
Replace the cached element only if the value of the current Element is equal to the value of the
supplied old Element.
|
static ElementValueComparator |
TxCopyingCacheStore.wrap(ElementValueComparator comparator,
CacheConfiguration cacheConfiguration)
Wraps the given
ElementValueComparator if the configuration requires copy on read |
static ElementValueComparator |
CopyingCacheStore.wrapIfCopy(ElementValueComparator comparator,
CacheConfiguration cacheConfiguration)
Wraps the given
ElementValueComparator if the configuration requires copy on read |
Modifier and Type | Method and Description |
---|---|
Element |
DiskStore.removeElement(Element element,
ElementValueComparator comparator)
Remove the Element mapped to the key for the supplied element if the value of the supplied Element
is equal to the value of the cached Element.
|
boolean |
DiskStore.replace(Element old,
Element element,
ElementValueComparator comparator)
Replace the cached element only if the value of the current Element is equal to the value of the
supplied old Element.
|
Modifier and Type | Method and Description |
---|---|
Element |
LocalTransactionStore.removeElement(Element element,
ElementValueComparator comparator)
Remove the Element mapped to the key for the supplied element if the value of the supplied Element
is equal to the value of the cached Element.
|
Element |
JtaLocalTransactionStore.removeElement(Element element,
ElementValueComparator comparator)
Remove the Element mapped to the key for the supplied element if the value of the supplied Element
is equal to the value of the cached Element.
|
boolean |
LocalTransactionStore.replace(Element old,
Element element,
ElementValueComparator comparator)
Replace the cached element only if the value of the current Element is equal to the value of the
supplied old Element.
|
boolean |
JtaLocalTransactionStore.replace(Element old,
Element element,
ElementValueComparator comparator)
Replace the cached element only if the value of the current Element is equal to the value of the
supplied old Element.
|
Constructor and Description |
---|
LocalTransactionStore(TransactionController transactionController,
TransactionIDFactory transactionIdFactory,
SoftLockManager softLockManager,
Ehcache cache,
Store store,
ElementValueComparator comparator)
Create a new LocalTransactionStore instance
|
Modifier and Type | Method and Description |
---|---|
Element |
XATransactionStore.removeElement(Element element,
ElementValueComparator comparator)
Remove the Element mapped to the key for the supplied element if the value of the supplied Element
is equal to the value of the cached Element.
|
boolean |
XATransactionStore.replace(Element old,
Element element,
ElementValueComparator comparator)
Replace the cached element only if the value of the current Element is equal to the value of the
supplied old Element.
|
Constructor and Description |
---|
EhcacheXAResourceImpl(Ehcache cache,
Store underlyingStore,
TransactionManagerLookup txnManagerLookup,
SoftLockManager softLockManager,
TransactionIDFactory transactionIDFactory,
ElementValueComparator comparator,
org.terracotta.statistics.observer.OperationObserver<XaCommitOutcome> commitObserver,
org.terracotta.statistics.observer.OperationObserver<XaRollbackOutcome> rollbackObserver,
org.terracotta.statistics.observer.OperationObserver<XaRecoveryOutcome> recoveryObserver)
Constructor
|
XATransactionStore(TransactionManagerLookup transactionManagerLookup,
SoftLockManager softLockManager,
TransactionIDFactory transactionIdFactory,
Ehcache cache,
Store store,
ElementValueComparator comparator)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractStoreCommand.prepare(Store store,
SoftLockManager softLockManager,
XidTransactionID transactionId,
ElementValueComparator comparator)
Prepare the commmand un the underlying store
|
boolean |
Command.prepare(Store store,
SoftLockManager softLockManager,
XidTransactionID transactionId,
ElementValueComparator comparator)
Prepare the commmand un the underlying store
|
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.