Package org.wso2.carbon.caching.impl
Class CacheEntryEventImpl
- java.lang.Object
-
- java.util.EventObject
-
- javax.cache.event.CacheEntryEvent
-
- org.wso2.carbon.caching.impl.CacheEntryEventImpl
-
- All Implemented Interfaces:
Serializable
public class CacheEntryEventImpl extends CacheEntryEvent
TODO: class description- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description CacheEntryEventImpl(Cache source)Constructs a cache entry event from a given cache as source
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetKey()Returns the key of the cache entry with the eventObjectgetValue()Returns the value of the cache entry with the eventvoidsetKey(Object key)voidsetValue(Object value)-
Methods inherited from class javax.cache.event.CacheEntryEvent
getSource
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
CacheEntryEventImpl
public CacheEntryEventImpl(Cache source)
Constructs a cache entry event from a given cache as source- Parameters:
source- the cache that originated the event
-
-
Method Detail
-
setKey
public void setKey(Object key)
-
setValue
public void setValue(Object value)
-
getKey
public Object getKey()
Description copied from class:CacheEntryEventReturns the key of the cache entry with the event- Specified by:
getKeyin classCacheEntryEvent- Returns:
- the key
-
getValue
public Object getValue()
Description copied from class:CacheEntryEventReturns the value of the cache entry with the event- Specified by:
getValuein classCacheEntryEvent- Returns:
- the value
-
-