public class CacheChangedEvent extends EventObject
CacheChangedListener.newValue(stella.io.CacheChangedEvent) method. Note
that this event also carries the value of the key to allow the listener
to judge whether the event was received accidently.
This event is a purely internal one. No rmi-transport is ever intended.
Therefore, all definitions are found in this package, and this event
class only extends the generic EventObject class rather than the
{stella.rmi.RmiEvent} class. Additionally, the appropriate caster
interface does not implement the generic Caster
interface.
| Modifier and Type | Field and Description |
|---|---|
private String |
key
The key in the cache, i.e.
|
private static long |
serialVersionUID |
private Object |
value
The new value in the cache, i.e.
|
source| Constructor and Description |
|---|
CacheChangedEvent(Object src,
String cachekey,
Object newval)
Constructs a new cache changed event.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCommand()
The accessory method for the cache key, i.e.
|
Object |
getRawReply()
The accessory method for the new cache value, i.e.
|
String |
getStringReply()
The accessory method for the new cache value, i.e.
|
getSource, toStringprivate static final long serialVersionUID
private final String key
private final Object value
public CacheChangedEvent(Object src, String cachekey, Object newval)
src - The event source.cachekey - The key in the cache look-up table, i.e. the serial
command.newval - The new value, i.e. the serial reply.public String getCommand()
public String getStringReply()
public Object getRawReply()
getStringReply().