org.norther.tammi.acorn.cache
Class CachedEntryEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.norther.tammi.acorn.cache.CachedEntryEvent
All Implemented Interfaces:
Serializable

public class CachedEntryEvent
extends EventObject

Events of this type are sent to an object that implements CachedEntryListener when it is expired, passivated or activated in the cache.

Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CachedEntryEvent(Object key, Object value, CachedMap cache)
          Constructs a new event.
 
Method Summary
 CachedMap getCache()
          Gets the cached map.
 Object getKey()
          Gets the cached key.
 Object getValue()
          Gets the cached value.
 void setValue(Object value)
          Sets the cached value.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CachedEntryEvent

public CachedEntryEvent(Object key,
                        Object value,
                        CachedMap cache)
Constructs a new event.

Parameters:
key - the key.
value - the value.
cache - the cache.
Method Detail

getCache

public CachedMap getCache()
Gets the cached map.

Returns:
the cache.

getKey

public Object getKey()
Gets the cached key.

Returns:
the key.

getValue

public Object getValue()
Gets the cached value.

Returns:
the value.

setValue

public void setValue(Object value)
Sets the cached value.

Parameters:
value - the value.


Copyright © 2004 The Norther Organization. All rights reserved.