| Modifier and Type | Class and Description |
|---|---|
| private static class | CopyingCacheStore.CopyingElementValueComparator
An |
| Access | Constructor and Description |
|---|---|
| public | CopyingCacheStore(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 classloader of the containing cache loader)Creates a copying instance of store, that wraps the actual storage |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| pack-priv static boolean | Returns: true is copying is required, otherwise falsethe cache config cacheConfiguration)Checks whether configuration enables copying |
| private static < the Store type T extends Store> CopyingCacheStore | 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 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 |
| 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 |
| CopyingCacheStore | back to summary |
|---|---|
| public CopyingCacheStore(T store, boolean copyOnRead, boolean copyOnWrite, ReadWriteCopyStrategy<Element> copyStrategyInstance, ClassLoader loader) Creates a copying instance of store, that wraps the actual storage
| |
| isCopyOnReadAndCopyOnWrite | back to summary |
|---|---|
| private static boolean isCopyOnReadAndCopyOnWrite(final CacheConfiguration cacheConfiguration) | |
| requiresCopy | back to summary |
|---|---|
| pack-priv static boolean requiresCopy(final CacheConfiguration cacheConfiguration) Checks whether configuration enables copying
| |
| wrap | back to summary |
|---|---|
| private static <T extends Store> CopyingCacheStore Wraps (always) with the proper configured CopyingCacheStore
| |
| wrapIfCopy | back to summary |
|---|---|
| public static Store wrapIfCopy(final Store cacheStore, final CacheConfiguration cacheConfiguration) Wraps the Store instance passed in, should any copy occur
| |
| wrapIfCopy | back to summary |
|---|---|
| public static ElementValueComparator wrapIfCopy(final ElementValueComparator comparator, final CacheConfiguration cacheConfiguration) Wraps the given
| |
net.sf.ehcache.store.ElementValueComparator which handles copy on read
| Modifier and Type | Field and Description |
|---|---|
| private final CopyStrategyHandler | |
| private final ElementValueComparator |
| Access | Constructor and Description |
|---|---|
| public | CopyingElementValueComparator(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 | |
| CopyingElementValueComparator | back to summary |
|---|---|
| public CopyingElementValueComparator(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. | |