net.sf.ehcache.store.compound
Interface ReadWriteCopyStrategy<T>
- Type Parameters:
T
- type
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- ImmutableValueElementCopyStrategy, LegacyCopyStrategyAdapter, NullReadWriteCopyStrategy, ReadWriteSerializationCopyStrategy, SerializationCopyStrategy
public interface ReadWriteCopyStrategy<T>
- extends Serializable
- Since:
- 2.4.0
- Author:
- Ludovic Orban
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
copyForWrite
T copyForWrite(T value,
ClassLoader loader)
- Deep copies some object and returns an internal storage-ready copy
- Parameters:
value
- the value to copy
- Returns:
- the storage-ready copy
copyForRead
T copyForRead(T storedValue,
ClassLoader loader)
- Reconstruct an object from its storage-ready copy.
- Parameters:
storedValue
- the storage-ready copy
- Returns:
- the original object
Copyright 2001-2016, Terracotta, Inc.