org.apache.commons.cache.remote
Class StoreRequest

java.lang.Object
  extended by org.apache.commons.cache.remote.StoreRequest
All Implemented Interfaces:
Serializable, CacheRequest

public class StoreRequest
extends Object
implements CacheRequest

tk.

Version:
$Id: StoreRequest.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 _group
           
protected  Serializable _key
           
protected  Serializable _val
           
 
Constructor Summary
StoreRequest(Serializable key, Serializable val, Long expiry)
           
StoreRequest(Serializable key, Serializable val, Long expiry, Long cost)
           
StoreRequest(Serializable key, Serializable val, Long expiry, Long cost, Serializable group)
           
 
Method Summary
 boolean equals(StoreRequest req)
           
 Long getCost()
           
 Long getExpiresAt()
           
 Serializable getGroup()
           
 Serializable getKey()
           
 Serializable getValue()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_key

protected Serializable _key

_val

protected Serializable _val

_group

protected Serializable _group

_expiry

protected Long _expiry

_cost

protected Long _cost
Constructor Detail

StoreRequest

public StoreRequest(Serializable key,
                    Serializable val,
                    Long expiry)

StoreRequest

public StoreRequest(Serializable key,
                    Serializable val,
                    Long expiry,
                    Long cost)

StoreRequest

public StoreRequest(Serializable key,
                    Serializable val,
                    Long expiry,
                    Long cost,
                    Serializable group)
Method Detail

getKey

public Serializable getKey()

getValue

public Serializable getValue()

getGroup

public Serializable getGroup()

getExpiresAt

public Long getExpiresAt()

getCost

public Long getCost()

equals

public boolean equals(StoreRequest req)

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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