com.bankframe.services.cache
Class CacheEvent

java.lang.Object
  extended bycom.bankframe.services.cache.CacheEvent

public class CacheEvent
extends java.lang.Object

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

PUT_EVENT

public static final int PUT_EVENT
See Also:
Constant Field Values

REMOVE_EVENT

public static final int REMOVE_EVENT
See Also:
Constant Field Values

GET_EVENT

public static final int GET_EVENT
See Also:
Constant Field Values
Constructor Detail

CacheEvent

public CacheEvent()
Constructor for CacheEvent.


CacheEvent

public CacheEvent(java.lang.Object source,
                  java.lang.Object key,
                  java.lang.Object data,
                  int type)
Constructor for CacheEvent.

Method Detail

getData

public java.lang.Object getData()
Returns the eventData.

Returns:
Object

getType

public int getType()
Returns the eventType.

Returns:
int

getKey

public java.lang.Object getKey()
Returns the eventKey.

Returns:
Object

getSource

public java.lang.Object getSource()
Returns the eventSource.

Returns:
Object

setData

public void setData(java.lang.Object data)
Sets the eventData.

Parameters:
data - The data to set

setType

public void setType(int type)
Sets the eventType.

Parameters:
type - The eventType to set

setKey

public void setKey(java.lang.Object key)
Sets the eventKey.

Parameters:
key - The key to set

setSource

public void setSource(java.lang.Object source)
Sets the eventSource.


isPutEvent

public boolean isPutEvent()
Convenience method to determine if this event type is PUT_EVENT


isRemoveEvent

public boolean isRemoveEvent()
Convenience method to determine if this event type is REMOVE_EVENT


isGetEvent

public boolean isGetEvent()
Convenience method to determine if this event type is GET_EVENT



Copyright © 2005, 2007, Oracle. All rights reserved.