|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.services.cache.CacheEvent
Object used to notify interested parties that state has changed in a cache.
Field Summary | |
static int |
GET_EVENT
|
static int |
PUT_EVENT
|
static int |
REMOVE_EVENT
|
Constructor Summary | |
CacheEvent()
Constructor for CacheEvent. |
|
CacheEvent(java.lang.Object source,
java.lang.Object key,
java.lang.Object data,
int type)
Constructor for CacheEvent. |
Method Summary | |
java.lang.Object |
getData()
Returns the eventData. |
java.lang.Object |
getKey()
Returns the eventKey. |
java.lang.Object |
getSource()
Returns the eventSource. |
int |
getType()
Returns the eventType. |
boolean |
isGetEvent()
Convenience method to determine if this event type is GET_EVENT |
boolean |
isPutEvent()
Convenience method to determine if this event type is PUT_EVENT |
boolean |
isRemoveEvent()
Convenience method to determine if this event type is REMOVE_EVENT |
void |
setData(java.lang.Object data)
Sets the eventData. |
void |
setKey(java.lang.Object key)
Sets the eventKey. |
void |
setSource(java.lang.Object source)
Sets the eventSource. |
void |
setType(int type)
Sets the eventType. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PUT_EVENT
public static final int REMOVE_EVENT
public static final int GET_EVENT
Constructor Detail |
public CacheEvent()
public CacheEvent(java.lang.Object source, java.lang.Object key, java.lang.Object data, int type)
Method Detail |
public java.lang.Object getData()
public int getType()
public java.lang.Object getKey()
public java.lang.Object getSource()
public void setData(java.lang.Object data)
data
- The data to setpublic void setType(int type)
type
- The eventType to setpublic void setKey(java.lang.Object key)
key
- The key to setpublic void setSource(java.lang.Object source)
public boolean isPutEvent()
public boolean isRemoveEvent()
public boolean isGetEvent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |