org.jboss.shotoku.cache.service.monitor
Class CacheAlertImpl
java.lang.Object
org.jboss.shotoku.cache.service.monitor.CacheAlertImpl
- All Implemented Interfaces:
- CacheAlert
public class CacheAlertImpl
- extends java.lang.Object
- implements CacheAlert
- Author:
- Adam Warski
|
Constructor Summary |
CacheAlertImpl(java.lang.String cause,
java.lang.String description,
java.lang.Object key)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
CacheAlertImpl
public CacheAlertImpl(java.lang.String cause,
java.lang.String description,
java.lang.Object key)
getCause
public java.lang.String getCause()
- Specified by:
getCause in interface CacheAlert
- Returns:
- Possible/definite cause of the incorrect behaviour.
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in interface CacheAlert
- Returns:
- Short description of the incorrect behaviour.
getTime
public long getTime()
- Specified by:
getTime in interface CacheAlert
- Returns:
- Time on which the represented behaviour was observed.
getKey
public java.lang.Object getKey()
- Specified by:
getKey in interface CacheAlert
- Returns:
CacheItem key, for which the incorrect behaviour occured.
getTimeFormatted
public java.lang.String getTimeFormatted()
- Specified by:
getTimeFormatted in interface CacheAlert
- Returns:
- Time on which the represented behaviour was observed, formatted as a string.
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object