| Modifier and Type | Class and Description |
|---|---|
| private static class | TxCopyingCacheStore.TxCopyingElementValueComparator
An |
| Access | Constructor and Description |
|---|---|
| public | TxCopyingCacheStore(T
the real store store, boolean whether to copy on reads copyOnRead, boolean whether to copy on writes copyOnWrite, ReadWriteCopyStrategy<Element> the copy strategy to use on every copy operation copyStrategyInstance, ClassLoader classloadaer of the containing cache loader)Creates a copying instance of store, that wraps the actual storage |
| Modifier and Type | Method and Description |
|---|---|
| public Element | Returns: the matching element, null if not foundthe key to look for key)Gets an element from the store, choosing the old value in case the element is currently mutated inside a transaction. |
| private static < the Store type T extends Store> TxCopyingCacheStore | Returns: the wrapped storethe store to wrap cacheStore, final CacheConfiguration the cache config backed by this store cacheConfiguration)Wraps (always) with the proper configured CopyingCacheStore |
| public static ElementValueComparator | Returns: the comparator passed if no copy needed, a wrapped comparator otherwisethe comparator to wrap comparator, final CacheConfiguration the cache configuration cacheConfiguration)Wraps the given |
| public static Store | Returns: the wrapped Store if copying is required, or the Store instance passed inthe store cacheStore, final CacheConfiguration the cache config for that store cacheConfiguration)Wraps the Store instance passed in, should any copy occur |
| TxCopyingCacheStore | back to summary |
|---|---|
| public TxCopyingCacheStore(T store, boolean copyOnRead, boolean copyOnWrite, ReadWriteCopyStrategy<Element> copyStrategyInstance, ClassLoader loader) Creates a copying instance of store, that wraps the actual storage
| |
| getOldElement | back to summary |
|---|---|
| public Element getOldElement(Object key) Gets an element from the store, choosing the old value in case the element is currently mutated inside a transaction. | |
| wrap | back to summary |
|---|---|
| private static <T extends Store> TxCopyingCacheStore Wraps (always) with the proper configured CopyingCacheStore
| |
| wrap | back to summary |
|---|---|
| public static ElementValueComparator wrap(final ElementValueComparator comparator, final CacheConfiguration cacheConfiguration) Wraps the given
| |
| wrapTxStore | back to summary |
|---|---|
| public static Store wrapTxStore(final AbstractTransactionStore cacheStore, final CacheConfiguration cacheConfiguration) Wraps the Store instance passed in, should any copy occur
| |
net.sf.ehcache.store.ElementValueComparator which handles copy on read and SoftLockID
| Modifier and Type | Field and Description |
|---|---|
| private final CopyStrategyHandler | |
| private final ElementValueComparator |
| Access | Constructor and Description |
|---|---|
| public | TxCopyingElementValueComparator(ElementValueComparator delegate, CopyStrategyHandler copyStrategyHandler)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Element
element to compare e1, Element element to compare e2)Implements net. |
| copyStrategyHandler | back to summary |
|---|---|
| private final CopyStrategyHandler copyStrategyHandler | |
| delegate | back to summary |
|---|---|
| private final ElementValueComparator delegate | |
| TxCopyingElementValueComparator | back to summary |
|---|---|
| public TxCopyingElementValueComparator(ElementValueComparator delegate, CopyStrategyHandler copyStrategyHandler) | |
| equals | back to summary |
|---|---|
| public boolean equals(Element e1, Element e2) Implements net. Doc from net. Compare the two elements. Null values have to be supported. | |