|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.services.cache.CacheEvent
public class 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(Object source,
Object key,
Object data,
int type)
Constructor for CacheEvent. |
|
| Method Summary | |
|---|---|
Object |
getData()
Returns the eventData. |
Object |
getKey()
Returns the eventKey. |
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(Object data)
Sets the eventData. |
void |
setKey(Object key)
Sets the eventKey. |
void |
setSource(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(Object source,
Object key,
Object data,
int type)
| Method Detail |
|---|
public Object getData()
public int getType()
public Object getKey()
public Object getSource()
public void setData(Object data)
data - The data to setpublic void setType(int type)
type - The eventType to setpublic void setKey(Object key)
key - The key to setpublic void setSource(Object source)
source - The eventSource to setpublic boolean isPutEvent()
public boolean isRemoveEvent()
public boolean isGetEvent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||