Top Constructors Methods
net.sf.ehcache.store

public Class TxCopyStrategyHandler

extends CopyStrategyHandler
Class Inheritance
Imports
net.sf.ehcache.Element, net.sf.ehcache.store.compound.ReadWriteCopyStrategy, net.sf.ehcache.transaction.SoftLockID

Author
Alex Snaps

Constructor Summary

AccessConstructor and Description
public
TxCopyStrategyHandler(final boolean
copy on read flag
copyOnRead
,
final boolean
copy on write flag
copyOnWrite
,
final ReadWriteCopyStrategy<Element>
the copy strategy to use
copyStrategy
,
final ClassLoader loader)

Creates a TxCopyStrategyHandler based on the copy configuration

Method Summary

Modifier and TypeMethod and Description
public Element
copyElementForReadIfNeeded(final Element
the element to copy for read
element
)

Overrides net.sf.ehcache.store.CopyStrategyHandler.copyElementForReadIfNeeded.

Perform copy on read on an element if configured
Inherited from net.sf.ehcache.store.CopyStrategyHandler:
copyElementForRemovalIfNeededcopyElementForWriteIfNeededisCopyActive

Constructor Detail

TxCopyStrategyHandlerback to summary
public TxCopyStrategyHandler(final boolean copyOnRead, final boolean copyOnWrite, final ReadWriteCopyStrategy<Element> copyStrategy, final ClassLoader loader)

Creates a TxCopyStrategyHandler based on the copy configuration

Parameters
copyOnRead:boolean

copy on read flag

copyOnWrite:boolean

copy on write flag

copyStrategy:ReadWriteCopyStrategy<Element>

the copy strategy to use

Method Detail

copyElementForReadIfNeededback to summary
public Element copyElementForReadIfNeeded(final Element element)

Overrides net.sf.ehcache.store.CopyStrategyHandler.copyElementForReadIfNeeded.

Doc from net.sf.ehcache.store.CopyStrategyHandler.copyElementForReadIfNeeded.

Perform copy on read on an element if configured

Parameters
element:Element

the element to copy for read

Returns:Element

a copy of the element with the reconstructed original value

Annotations
@Override