org.codeforamerica.open311.internals.caching
Class CacheableObject

java.lang.Object
  extended by 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

Constructor Summary
CacheableObject(Serializable object, int hoursToLive)
           
CacheableObject(String base64object)
           
 
Method Summary
 Object getObject()
           
 String serialize()
          Return a serialized version of the object.
static String serialize(Serializable object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheableObject

public CacheableObject(Serializable object,
                       int hoursToLive)

CacheableObject

public CacheableObject(String base64object)
Method Detail

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.