org.wanghy.cache.provider.oscache
Class OscacheCacheProfile

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

public class OscacheCacheProfile
extends Object
implements CacheProfile

Set of configuration options needed for:

Version:
$Revision: 1.9 $ $Date: 2005/03/03 09:21:57 $
Author:
Alex Ruiz
See Also:
Serialized Form

Field Summary
private  String cronExpression
          A cron expression that the age of the cache entry will be compared to.
private  String[] groups
          The groups that the object to cache belongs to.
private  Integer refreshPeriod
          How long the object can stay in cache in seconds.
private static long serialVersionUID
          Version number of this class.
 
Constructor Summary
OscacheCacheProfile()
          Constructor.
 
Method Summary
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 String getCronExpression()
          Getter for field cronExpression.
 String[] getGroups()
          Getter for field groups.
 Integer getRefreshPeriod()
          Getter for field refreshPeriod.
 int hashCode()
          Returns a hash code value for the object.
 void setCronExpression(String cronExpression)
          Setter for the field cronExpression.
 void setGroups(String csvGroups)
          Sets the cache groups from a comma-delimited list of values.
 void setGroups(String[] groups)
          Setter for the field groups.
 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

cronExpression

private String cronExpression
A cron expression that the age of the cache entry will be compared to. If the entry is older than the most recent match for the cron expression, the entry will be considered stale.


groups

private String[] groups
The groups that the object to cache belongs to.


refreshPeriod

private Integer refreshPeriod
How long the object can stay in cache in seconds.

Constructor Detail

OscacheCacheProfile

public OscacheCacheProfile()
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:
Object.equals(java.lang.Object)

getCronExpression

public final String getCronExpression()
Getter for field cronExpression.

Returns:
the field cronExpression.

getGroups

public final String[] getGroups()
Getter for field groups.

Returns:
the field groups.

getRefreshPeriod

public final Integer 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.
See Also:
Object.hashCode()

setCronExpression

public final void setCronExpression(String cronExpression)
Setter for the field cronExpression.

Parameters:
cronExpression - the new value to set.

setGroups

public final void setGroups(String csvGroups)
Sets the cache groups from a comma-delimited list of values.

Parameters:
csvGroups - the comma-delimited list of values containing the cache groups.

setGroups

public final void setGroups(String[] groups)
Setter for the field groups.

Parameters:
groups - 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.
See Also:
Object.toString()


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