Oracle Application Server 10g Java Object Cache API Reference
10g(9.0.4)

B10388-01

oracle.ias.cache
Class CacheEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--oracle.ias.cache.CacheEvent
All Implemented Interfaces:
java.io.Serializable

public class CacheEvent
extends java.util.EventObject

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.

Since:
2.0.0
See Also:
Serialized Form

Field Summary
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.

 

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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

OBJECT_INVALIDATED

public static final int OBJECT_INVALIDATED
Represents the object or group invalidated event. This event can happen in the following scenarioes:

OBJECT_UPDATED

public static final int OBJECT_UPDATED
Represents the object updated event. This event can happen when a cached object gets updated. This event usally triggered by a CacheAccess.replace call.
See Also:
Constant Field Values

OBJECT_UPDATED_SYNC

public static final int OBJECT_UPDATED_SYNC
Represents the object updated event. This event can happen when a cached object gets updated. This event is triggered by a CacheAccess.replace call. This event differs from the OBJECT_UPDATED event in that it will be executed synchronously, within the callers thread before the update call completes. With OBJECT_UPDATED, the event is handled asynchronously by a background thread.
See Also:
Constant Field Values
Method Detail

getId

public int getId()
getId returns the event identifier.
Returns:
event identifier.
Since:
2.0.0

getName

public java.lang.Object getName()
getName returns the name of the object associated with the event
Returns:
object name
Since:
2.1.0

getSource

public java.lang.Object getSource()
Overrides:
getSource in class java.util.EventObject

getRegion

public java.lang.String getRegion()
getRegion returns the name of the region associated with the event
Returns:
object name
Since:
9.0.4

Oracle Application Server 10g Java Object Cache API Reference
10g(9.0.4)

B10388-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.