|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.store.compound.ReadWriteSerializationCopyStrategy
public class ReadWriteSerializationCopyStrategy
A copy strategy that can use partial (if both copy on read and copy on write are set) or full Serialization to copy the object graph
Constructor Summary | |
---|---|
ReadWriteSerializationCopyStrategy()
|
Method Summary | |
---|---|
Element |
copyForRead(Element storedValue,
ClassLoader loader)
Reconstruct an object from its storage-ready copy. |
Element |
copyForWrite(Element value,
ClassLoader loader)
Deep copies some object and returns an internal storage-ready copy |
Element |
duplicateElementWithNewValue(Element element,
Object newValue)
Make a duplicate of an element but using the specified value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReadWriteSerializationCopyStrategy()
Method Detail |
---|
public Element copyForWrite(Element value, ClassLoader loader)
ReadWriteCopyStrategy
copyForWrite
in interface ReadWriteCopyStrategy<Element>
value
- the value to copy
public Element copyForRead(Element storedValue, ClassLoader loader)
ReadWriteCopyStrategy
copyForRead
in interface ReadWriteCopyStrategy<Element>
storedValue
- the storage-ready copy
public Element duplicateElementWithNewValue(Element element, Object newValue)
element
- the element to duplicatenewValue
- the new element's value
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |