|
Oracle Application Server 10g Java Object Cache API Reference 10g Release 2 (10.1.2) B14018-01 November 2004 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
oracle.ias.cache.CacheEvent
CacheEvent represents an internal cache event. It extends java.util.EventObject. If an event happens on a cached object, the source object in CacheEvent is the cached object which relates to the event that just happened. If an event happens on a cache group, the source object in CacheEvent is the group name which relates to the event that just happened. Event id is used to identify different types of events. Application can register a CacheEventListener to handle event. Currently, only the OBJECT_INVALIDATED and OBJECT_UPDATED events are defined.
Field Summary | |
static int |
OBJECT_INV_EXPLICIT
Represents the event when object or group explicitly invalidated. |
static int |
OBJECT_INV_REMOVED
Represents the event when object or group invalidated or removed due to resource or capacity limit. |
static int |
OBJECT_INV_TIMEOUT
Represents the event when object or group invalidated due to ttl or idletime expired. |
static int |
OBJECT_INVALIDATED
Represents the object or group invalidated event. |
static int |
OBJECT_UPDATED
Represents the object updated event. |
static int |
OBJECT_UPDATED_SYNC
Represents the object updated event. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
protected |
CacheEvent(int id,
java.lang.Object name,
java.lang.String region,
java.lang.Object src,
CacheEventListener ltn)
Creates a new CacheEvent. |
Method Summary | |
int |
getId()
getId returns the event identifier. |
java.lang.Object |
getName()
getName returns the name of the object associated with the event |
java.lang.String |
getRegion()
getRegion returns the name of the region associated with the event |
java.lang.Object |
getSource()
|
Methods inherited from class java.util.EventObject |
toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int OBJECT_INVALIDATED
public static final int OBJECT_UPDATED
public static final int OBJECT_UPDATED_SYNC
public static final int OBJECT_INV_EXPLICIT
public static final int OBJECT_INV_TIMEOUT
public static final int OBJECT_INV_REMOVED
Constructor Detail |
protected CacheEvent(int id, java.lang.Object name, java.lang.String region, java.lang.Object src, CacheEventListener ltn)
src
- is the source object. If the event happens on a cached object,
the cached object is the source object. If the event happens on a cache
group, the group name is the source object.id
- is the event identifier. Currently, only OBJECT_INVALIDATED
and OBJECT_UPDATED are supportedMethod Detail |
public int getId()
public java.lang.Object getName()
public java.lang.Object getSource()
public java.lang.String getRegion()
|
Oracle Application Server 10g Java Object Cache API Reference 10g Release 2 (10.1.2) B14018-01 November 2004 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |