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)
CopyStrategyHandlercopyElementForReadIfNeeded in class CopyStrategyHandlerelement - the element to copy for readCopyright 2001-2021, Terracotta, Inc.