org.apache.jcs.engine.logging
Class CacheEvent<K extends Serializable>
java.lang.Object
org.apache.jcs.engine.logging.CacheEvent<K>
- All Implemented Interfaces:
- Serializable, ICacheEvent<K>
public class CacheEvent<K extends Serializable>
- extends Object
- implements ICacheEvent<K>
It's returned from create and passed into log.
- See Also:
- Serialized Form
CacheEvent
public CacheEvent()
setSource
public void setSource(String source)
- Specified by:
setSource in interface ICacheEvent<K extends Serializable>
- Parameters:
source - the source to set
getSource
public String getSource()
- Specified by:
getSource in interface ICacheEvent<K extends Serializable>
- Returns:
- the source
setRegion
public void setRegion(String region)
- Specified by:
setRegion in interface ICacheEvent<K extends Serializable>
- Parameters:
region - the region to set
getRegion
public String getRegion()
- Specified by:
getRegion in interface ICacheEvent<K extends Serializable>
- Returns:
- the region
setEventName
public void setEventName(String eventName)
- Specified by:
setEventName in interface ICacheEvent<K extends Serializable>
- Parameters:
eventName - the eventName to set
getEventName
public String getEventName()
- Specified by:
getEventName in interface ICacheEvent<K extends Serializable>
- Returns:
- the eventName
setOptionalDetails
public void setOptionalDetails(String optionalDetails)
- Specified by:
setOptionalDetails in interface ICacheEvent<K extends Serializable>
- Parameters:
optionalDetails - the optionalDetails to set
getOptionalDetails
public String getOptionalDetails()
- Specified by:
getOptionalDetails in interface ICacheEvent<K extends Serializable>
- Returns:
- the optionalDetails
setKey
public void setKey(K key)
- Specified by:
setKey in interface ICacheEvent<K extends Serializable>
- Parameters:
key - the key to set
getKey
public K getKey()
- Specified by:
getKey in interface ICacheEvent<K extends Serializable>
- Returns:
- the key
getCreateTime
public long getCreateTime()
- The time at which this object was created.
- Returns:
- the createTime
toString
public String toString()
- Overrides:
toString in class Object
- Returns:
- reflection toString
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.