Package net.sf.ehcache.store
Class TxCopyStrategyHandler
- java.lang.Object
-
- net.sf.ehcache.store.CopyStrategyHandler
-
- net.sf.ehcache.store.TxCopyStrategyHandler
-
public class TxCopyStrategyHandler extends CopyStrategyHandler
- Author:
- Alex Snaps
-
-
Constructor Summary
Constructors Constructor Description TxCopyStrategyHandler(boolean copyOnRead, boolean copyOnWrite, ReadWriteCopyStrategy<Element> copyStrategy, java.lang.ClassLoader loader)Creates a TxCopyStrategyHandler based on the copy configuration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementcopyElementForReadIfNeeded(Element element)Perform copy on read on an element if configured
-
-
-
Constructor Detail
-
TxCopyStrategyHandler
public TxCopyStrategyHandler(boolean copyOnRead, boolean copyOnWrite, ReadWriteCopyStrategy<Element> copyStrategy, java.lang.ClassLoader loader)Creates a TxCopyStrategyHandler based on the copy configuration- Parameters:
copyOnRead- copy on read flagcopyOnWrite- copy on write flagcopyStrategy- the copy strategy to useloader-
-
-
Method Detail
-
copyElementForReadIfNeeded
public Element copyElementForReadIfNeeded(Element element)
Description copied from class:CopyStrategyHandlerPerform copy on read on an element if configured- Overrides:
copyElementForReadIfNeededin classCopyStrategyHandler- Parameters:
element- the element to copy for read- Returns:
- a copy of the element with the reconstructed original value
-
-