Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.util
Class MapListenerSupport.FilterEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.tangosol.util.MapEvent
          extended by com.tangosol.net.cache.CacheEvent
              extended by com.tangosol.util.MapListenerSupport.FilterEvent

All Implemented Interfaces:
java.io.Serializable
Enclosing class:
MapListenerSupport

public static class MapListenerSupport.FilterEvent
extends CacheEvent

An extension of the CacheEvent which may carry no values (old or new), but instead holds on an array of Filter objects being the "cause" of the event.


Nested Class Summary

 

Nested classes/interfaces inherited from class com.tangosol.net.cache.CacheEvent
CacheEvent.TransformationState

 

Field Summary
protected  Filter[] f_aFilter
          Filters that caused the event.
protected  MapEvent f_event
          Optional wrapped MapEvent.

 

Fields inherited from class com.tangosol.net.cache.CacheEvent
m_fSynthetic, m_transformState

 

Fields inherited from class com.tangosol.util.MapEvent
ENTRY_DELETED, ENTRY_INSERTED, ENTRY_UPDATED, m_nId, m_oKey, m_oValueNew, m_oValueOld

 

Fields inherited from class java.util.EventObject
source

 

Constructor Summary
MapListenerSupport.FilterEvent(MapEvent event, Filter[] aFilter)
          Constructs a new FilterEvent that wraps the given MapEvent.
MapListenerSupport.FilterEvent(ObservableMap map, int nId, java.lang.Object oKey, boolean fSynthetic, Filter[] aFilter)
          Constructs a new lite (no values are specified) FilterEvent.
MapListenerSupport.FilterEvent(ObservableMap map, int nId, java.lang.Object oKey, java.lang.Object oValueOld, java.lang.Object oValueNew, boolean fSynthetic, CacheEvent.TransformationState transformState, Filter[] aFilter)
          Constructs a new FilterEvent.
MapListenerSupport.FilterEvent(ObservableMap map, int nId, java.lang.Object oKey, java.lang.Object oValueOld, java.lang.Object oValueNew, boolean fSynthetic, Filter[] aFilter)
          Constructs a new FilterEvent.

 

Method Summary
protected  java.lang.String getDescription()
          Get the event's description.
 Filter[] getFilter()
          Return an array of filters that are the cause of this event.
 java.lang.Object getKey()
          Return a key associated with this event.
 java.lang.Object getNewValue()
          Return a new value associated with this event.
 java.lang.Object getOldValue()
          Return an old value associated with this event.

 

Methods inherited from class com.tangosol.net.cache.CacheEvent
getTransformationState, isSynthetic

 

Methods inherited from class com.tangosol.util.MapEvent
dispatch, dispatch, dispatch, getDescription, getId, getMap, getNewEntry, getOldEntry, toString

 

Methods inherited from class java.util.EventObject
getSource

 

Field Detail

f_aFilter

protected final Filter[] f_aFilter
Filters that caused the event.

f_event

protected final MapEvent f_event
Optional wrapped MapEvent.

Constructor Detail

MapListenerSupport.FilterEvent

public MapListenerSupport.FilterEvent(ObservableMap map,
                                      int nId,
                                      java.lang.Object oKey,
                                      boolean fSynthetic,
                                      Filter[] aFilter)
Constructs a new lite (no values are specified) FilterEvent.
Parameters:
map - the ObservableMap object that fired the event
nId - this event's id
oKey - the key into the map
fSynthetic - true iff the event is caused by the cache internal processing such as eviction or loading
aFilter - an array of filters that caused this event

MapListenerSupport.FilterEvent

public MapListenerSupport.FilterEvent(ObservableMap map,
                                      int nId,
                                      java.lang.Object oKey,
                                      java.lang.Object oValueOld,
                                      java.lang.Object oValueNew,
                                      boolean fSynthetic,
                                      Filter[] aFilter)
Constructs a new FilterEvent.
Parameters:
map - the ObservableMap object that fired the event
nId - this event's id
oKey - the key into the map
oValueOld - the old value
oValueNew - the new value
fSynthetic - true iff the event is caused by the cache internal processing such as eviction or loading
aFilter - an array of filters that caused this event

MapListenerSupport.FilterEvent

public MapListenerSupport.FilterEvent(ObservableMap map,
                                      int nId,
                                      java.lang.Object oKey,
                                      java.lang.Object oValueOld,
                                      java.lang.Object oValueNew,
                                      boolean fSynthetic,
                                      CacheEvent.TransformationState transformState,
                                      Filter[] aFilter)
Constructs a new FilterEvent.
Parameters:
map - the ObservableMap object that fired the event
nId - this event's id
oKey - the key into the map
oValueOld - the old value
oValueNew - the new value
fSynthetic - true iff the event is caused by the cache internal processing such as eviction or loading
transformState - the state describing how this event has been or should be transformed
aFilter - an array of filters that caused this event

MapListenerSupport.FilterEvent

public MapListenerSupport.FilterEvent(MapEvent event,
                                      Filter[] aFilter)
Constructs a new FilterEvent that wraps the given MapEvent.
Parameters:
event - the wrapped MapEvent
aFilter - an array of filters that caused this event

Method Detail

getFilter

public Filter[] getFilter()
Return an array of filters that are the cause of this event.
Returns:
an array of filters

getDescription

protected java.lang.String getDescription()
Get the event's description.
Overrides:
getDescription in class CacheEvent
Returns:
this event's description

getKey

public java.lang.Object getKey()
Return a key associated with this event.
Overrides:
getKey in class MapEvent
Returns:
a key

getOldValue

public java.lang.Object getOldValue()
Return an old value associated with this event.

The old value represents a value deleted from or updated in a map. It is always null for "insert" notifications.

Overrides:
getOldValue in class MapEvent
Returns:
an old value

getNewValue

public java.lang.Object getNewValue()
Return a new value associated with this event.

The new value represents a new value inserted into or updated in a map. It is always null for "delete" notifications.

Overrides:
getNewValue in class MapEvent
Returns:
a new value

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.