org.apache.commons.cache
Class CachedObjectInfoImpl

java.lang.Object
  extended by org.apache.commons.cache.CachedObjectInfoImpl
All Implemented Interfaces:
Serializable, CachedObjectInfo

public class CachedObjectInfoImpl
extends Object
implements CachedObjectInfo

A simple implementation of CachedObjectInfo.

Version:
$Id: CachedObjectInfoImpl.java 155435 2005-02-26 13:17:27Z dirkv $
Author:
Rodney Waldhoff
See Also:
Serialized Form

Field Summary
protected  Long _cost
           
protected  Long _expiry
           
protected  Serializable _key
           
 
Constructor Summary
CachedObjectInfoImpl(Serializable key, Long expiry, Long cost)
           
 
Method Summary
 Long getCost()
           
 Long getExpirationTs()
           
 Serializable getKey()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_key

protected Serializable _key

_expiry

protected Long _expiry

_cost

protected Long _cost
Constructor Detail

CachedObjectInfoImpl

public CachedObjectInfoImpl(Serializable key,
                            Long expiry,
                            Long cost)
Method Detail

getKey

public Serializable getKey()
Specified by:
getKey in interface CachedObjectInfo

getExpirationTs

public Long getExpirationTs()
Specified by:
getExpirationTs in interface CachedObjectInfo

getCost

public Long getCost()
Specified by:
getCost in interface CachedObjectInfo

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.