|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.wadi.core.eviction.SimpleEvictable
org.codehaus.wadi.core.motable.AbstractMotable
org.codehaus.wadi.core.motable.SimpleMotable
public class SimpleMotable
A very Simple implementation of Motable, with the Bytes field represented as a byte[]
Field Summary | |
---|---|
protected byte[] |
_bytes
|
Fields inherited from class org.codehaus.wadi.core.motable.AbstractMotable |
---|
readWriteLock |
Fields inherited from class org.codehaus.wadi.core.eviction.SimpleEvictable |
---|
memento |
Constructor Summary | |
---|---|
SimpleMotable()
|
Method Summary | |
---|---|
byte[] |
getBodyAsByteArray()
|
void |
readExternal(java.io.ObjectInput oi)
|
void |
setBodyAsByteArray(byte[] bytes)
|
void |
writeExternal(java.io.ObjectOutput oo)
|
Methods inherited from class org.codehaus.wadi.core.motable.AbstractMotable |
---|
copy, destroy, destroyForMotion, getAbstractMotableMemento, getName, getReadWriteLock, init, initExisting, isNew, mote, newMemento, newReadWriteLock, onDeserialization, rehydrate, restore |
Methods inherited from class org.codehaus.wadi.core.eviction.SimpleEvictable |
---|
copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, mote, onSerialization, setLastAccessedTime, setMaxInactiveInterval |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.wadi.core.eviction.Evictable |
---|
copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, mote, setLastAccessedTime, setMaxInactiveInterval |
Field Detail |
---|
protected byte[] _bytes
Constructor Detail |
---|
public SimpleMotable()
Method Detail |
---|
public byte[] getBodyAsByteArray()
public void setBodyAsByteArray(byte[] bytes)
public void readExternal(java.io.ObjectInput oi) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class SimpleEvictable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput oo) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class SimpleEvictable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |