public class TxCopyStrategyHandler extends CopyStrategyHandler
Constructor and Description |
---|
TxCopyStrategyHandler(boolean copyOnRead,
boolean copyOnWrite,
ReadWriteCopyStrategy<Element> copyStrategy,
ClassLoader loader)
Creates a TxCopyStrategyHandler based on the copy configuration
|
Modifier and Type | Method and Description |
---|---|
Element |
copyElementForReadIfNeeded(Element element)
Perform copy on read on an element if configured
|
public TxCopyStrategyHandler(boolean copyOnRead, boolean copyOnWrite, ReadWriteCopyStrategy<Element> copyStrategy, ClassLoader loader)
copyOnRead
- copy on read flagcopyOnWrite
- copy on write flagcopyStrategy
- the copy strategy to useloader
- public Element copyElementForReadIfNeeded(Element element)
CopyStrategyHandler
copyElementForReadIfNeeded
in class CopyStrategyHandler
element
- the element to copy for readCopyright © 2003–2016 Terracotta, Inc.. All rights reserved.