org.codeforamerica.open311.internals.caching
Class CacheableObject
java.lang.Object
org.codeforamerica.open311.internals.caching.CacheableObject
- All Implemented Interfaces:
- Serializable
public class CacheableObject
- extends Object
- implements Serializable
A pair of serializable, expiration date.
- Author:
- Santiago MunĂn
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheableObject
public CacheableObject(Serializable object,
int hoursToLive)
CacheableObject
public CacheableObject(String base64object)
getObject
public Object getObject()
serialize
public String serialize()
- Return a serialized version of the object.
- Returns:
- A base64 encoded string version of the object.
serialize
public static String serialize(Serializable object)
Copyright © 2013 Code for America. All Rights Reserved.