ehcache

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

Field Summary
static long serialVersionUID
           
 
Method Summary
 T copyForRead(T storedValue, ClassLoader loader)
          Reconstruct an object from its storage-ready copy.
 T copyForWrite(T value, ClassLoader loader)
          Deep copies some object and returns an internal storage-ready copy
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

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

ehcache

Copyright 2001-2014, Terracotta, Inc.