org.wanghy.cache.provider.lru
Class LruCacheProfile

java.lang.Object
  extended byorg.wanghy.cache.provider.lru.LruCacheProfile
All Implemented Interfaces:
CacheProfile, Serializable

public class LruCacheProfile
extends Object
implements CacheProfile

Set of configuration options needed for:

Version:
$Revision: 1.10 $ $Date: 2005/03/11 12:02:50 $
Author:
Alex Ruiz
See Also:
Serialized Form

Field Summary
private  String group
          The group the object to cache belongs to.
private  int refreshPeriod
          How long an entry can stay in the cache (in seconds).
private static long serialVersionUID
          Version number of this class.
 
Constructor Summary
LruCacheProfile()
          Constructor.
 
Method Summary
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 String getGroup()
          Getter for field group.
 int getRefreshPeriod()
          Getter for field refreshPeriod.
 int hashCode()
          Returns a hash code value for the object.
 void setGroup(String group)
          Setter for the field group.
 void setRefreshPeriod(int refreshPeriod)
          Setter for the field refreshPeriod.
 void setRefreshPeriod(Integer refreshPeriod)
          Setter for the field refreshPeriod.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Version number of this class.

See Also:
Serializable, Constant Field Values

group

private String group
The group the object to cache belongs to.


refreshPeriod

private int refreshPeriod
How long an entry can stay in the cache (in seconds).

Constructor Detail

LruCacheProfile

public LruCacheProfile()
Constructor.

Method Detail

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
hashCode()

getGroup

public final String getGroup()
Getter for field group.

Returns:
the field group.

getRefreshPeriod

public final int getRefreshPeriod()
Getter for field refreshPeriod.

Returns:
the field refreshPeriod.

hashCode

public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

Returns:
a hash code value for this object.

setGroup

public final void setGroup(String group)
Setter for the field group.

Parameters:
group - the new value to set

setRefreshPeriod

public final void setRefreshPeriod(int refreshPeriod)
Setter for the field refreshPeriod.

Parameters:
refreshPeriod - the new value to set

setRefreshPeriod

public final void setRefreshPeriod(Integer refreshPeriod)
Setter for the field refreshPeriod.

Parameters:
refreshPeriod - the new value to set

toString

public String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object.

Returns:
a string representation of the object.


Copyright © 2004-2005 Alex Ruiz. All Rights Reserved.