ehcache

net.sf.ehcache.store
Class TxCopyStrategyHandler

java.lang.Object
  extended by net.sf.ehcache.store.CopyStrategyHandler
      extended by net.sf.ehcache.store.TxCopyStrategyHandler

public class TxCopyStrategyHandler
extends CopyStrategyHandler

Author:
Alex Snaps

Constructor Summary
TxCopyStrategyHandler(boolean copyOnRead, boolean copyOnWrite, ReadWriteCopyStrategy<Element> copyStrategy, ClassLoader loader)
          Creates a TxCopyStrategyHandler based on the copy configuration
 
Method Summary
 Element copyElementForReadIfNeeded(Element element)
          Perform copy on read on an element if configured
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TxCopyStrategyHandler

public TxCopyStrategyHandler(boolean copyOnRead,
                             boolean copyOnWrite,
                             ReadWriteCopyStrategy<Element> copyStrategy,
                             ClassLoader loader)
Creates a TxCopyStrategyHandler based on the copy configuration

Parameters:
copyOnRead - copy on read flag
copyOnWrite - copy on write flag
copyStrategy - the copy strategy to use
loader -
Method Detail

copyElementForReadIfNeeded

public Element copyElementForReadIfNeeded(Element element)
Description copied from class: CopyStrategyHandler
Perform copy on read on an element if configured

Overrides:
copyElementForReadIfNeeded in class CopyStrategyHandler
Parameters:
element - the element to copy for read
Returns:
a copy of the element with the reconstructed original value

ehcache

Copyright 2001-2015, Terracotta, Inc.