Top Fields Methods
net.sf.ehcache.store.compound

public Interface ReadWriteCopyStrategy<T>

extends Serializable
Known Direct Implementers
net.sf.ehcache.store.compound.ReadWriteSerializationCopyStrategy, net.sf.ehcache.store.compound.SerializationCopyStrategy, net.sf.ehcache.store.compound.ImmutableValueElementCopyStrategy, net.sf.ehcache.store.compound.LegacyCopyStrategyAdapter, net.sf.ehcache.store.compound.NullReadWriteCopyStrategy
Type Parameters
<T>
type
Imports
java.io.Serializable

Author
Ludovic Orban
Since
2.4.0

Field Summary

Modifier and TypeField and Description
public static final long

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the original object
copyForRead
(final T
the storage-ready copy
storedValue
,
ClassLoader loader)

Reconstruct an object from its storage-ready copy.

public T

Returns:

the storage-ready copy
copyForWrite
(final T
the value to copy
value
,
ClassLoader loader)

Deep copies some object and returns an internal storage-ready copy

Field Detail

serialVersionUIDback to summary
public static final long serialVersionUID

Method Detail

copyForReadback to summary
public T copyForRead(final T storedValue, ClassLoader loader)

Reconstruct an object from its storage-ready copy.

Parameters
storedValue:T

the storage-ready copy

Returns:T

the original object

copyForWriteback to summary
public T copyForWrite(final T value, ClassLoader loader)

Deep copies some object and returns an internal storage-ready copy

Parameters
value:T

the value to copy

Returns:T

the storage-ready copy