|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.cache.CacheItem<K>
public final class CacheItem<K>
Wraps the cached item with metadata
Constructor Summary | |
---|---|
CacheItem(String key,
K obj,
long timeout)
Instantiates a new cache item. |
Method Summary | |
---|---|
boolean |
isExpired()
Checks if is expired. |
void |
readObject(ObjectInputStream in)
Deserializes the object from an input stream |
void |
writeObject(ObjectOutputStream out)
Serializes the object to an output stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheItem(String key, K obj, long timeout)
key
- the keyobj
- the objtimeout
- the timeoutMethod Detail |
---|
public boolean isExpired()
public void writeObject(ObjectOutputStream out) throws IOException
out
- the out
IOException
- Signals that an I/O exception has occurred.public void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
in
- the in
IOException
- Signals that an I/O exception has occurred.
ClassNotFoundException
- the class not found exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |