org.codehaus.wadi.impl
Class AbstractMotable
java.lang.Object
org.codehaus.wadi.impl.SimpleEvictable
org.codehaus.wadi.impl.AbstractMotable
- All Implemented Interfaces:
- Evictable, Motable, Serializable
- Direct Known Subclasses:
- AbstractContext, DatabaseMotable, DiscMotable, SimpleMotable
- public abstract class AbstractMotable
- extends SimpleEvictable
- implements Motable, Serializable
Implement all of Motable except for the Bytes field. This is the field most likely to have different representations.
- Version:
- $Revision: 1233 $
- Author:
- Jules Gosnell
- See Also:
- Serialized Form
Methods inherited from class org.codehaus.wadi.impl.SimpleEvictable |
checkTimeframe, copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, isNew, mote, 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.Evictable |
checkTimeframe, copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, isNew, mote, setLastAccessedTime, setMaxInactiveInterval |
_log
protected static Log _log
_name
protected String _name
AbstractMotable
public AbstractMotable()
init
public void init(long creationTime,
long lastAccessedTime,
int maxInactiveInterval,
String name)
- Specified by:
init
in interface Motable
destroy
public void destroy()
throws Exception
- Specified by:
destroy
in interface Evictable
- Overrides:
destroy
in class SimpleEvictable
- Throws:
Exception
copy
public void copy(Motable motable)
throws Exception
- Specified by:
copy
in interface Motable
- Throws:
Exception
mote
public void mote(Motable recipient)
throws Exception
- Specified by:
mote
in interface Motable
- Throws:
Exception
getName
public String getName()
- Specified by:
getName
in interface Motable
readContent
public void readContent(ObjectInput oi)
throws IOException,
ClassNotFoundException
- Overrides:
readContent
in class SimpleEvictable
- Throws:
IOException
ClassNotFoundException
writeContent
public void writeContent(ObjectOutput oo)
throws IOException
- Overrides:
writeContent
in class SimpleEvictable
- Throws:
IOException
Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.