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
public abstract class CacheEntryEvent<K,V>
- extends EventObject
A Cache event base class
- See Also:
- Serialized Form
Constructor Summary |
CacheEntryEvent(Cache source)
Constructs a cache entry event from a given cache as source |
Method Summary |
abstract K |
getKey()
Returns the key of the cache entry with the event |
Cache |
getSource()
|
abstract V |
getValue()
Returns the value of the cache entry with the event |
CacheEntryEvent
public CacheEntryEvent(Cache source)
- Constructs a cache entry event from a given cache as source
- Parameters:
source
- the cache that originated the event
getSource
public final Cache getSource()
- Overrides:
getSource
in class EventObject
getKey
public abstract K getKey()
- Returns the key of the cache entry with the event
- Returns:
- the key
getValue
public abstract V getValue()
- Returns the value of the cache entry with the event
- Returns:
- the value
Copyright © 2011. All Rights Reserved.