public final class CacheItem<K> extends Object implements Serializable
| Constructor and Description |
|---|
CacheItem(String key,
K obj,
long timeout)
Instantiates a new cache item.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public boolean isExpired()
public void writeObject(ObjectOutputStream out) throws IOException
out - the outIOException - Signals that an I/O exception has occurred.public void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
in - the inIOException - Signals that an I/O exception has occurred.ClassNotFoundException - the class not found exceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.