Package javax.cache.event
Class CacheEntryEvent<K,V>
java.lang.Object
java.util.EventObject
javax.cache.event.CacheEntryEvent<K,V>
- Type Parameters:
K- the type of keys maintained by this cacheV- the type of cached values
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CacheEntryEventImpl
A Cache event base class
- Since:
- 1.0
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionCacheEntryEvent(Cache source) Constructs a cache entry event from a given cache as source -
Method Summary
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
CacheEntryEvent
Constructs a cache entry event from a given cache as source- Parameters:
source- the cache that originated the event
-
-
Method Details
-
getSource
- Overrides:
getSourcein classEventObject
-
getKey
Returns the key of the cache entry with the event- Returns:
- the key
-
getValue
Returns the value of the cache entry with the event- Returns:
- the value
-