|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.util.filter.MapEventFilter
com.tangosol.util.filter.CacheEventFilter
public class CacheEventFilter
An extension of the MapEventFilter which allows selection of client driven (natural) events, cache internal (synthetic) events, or both.
| Field Summary | |
|---|---|
static int |
E_NATURALBitmask to select natural events. |
static int |
E_SYNTHETICBitmask to select synthetic events. |
protected int |
m_nMaskSyntheticBitmask that selects whether to include synthetic, natural, or all events. |
| Fields inherited from class com.tangosol.util.filter.MapEventFilter |
|---|
E_ALL, E_DELETED, E_INSERTED, E_KEYSET, E_UPDATED, E_UPDATED_ENTERED, E_UPDATED_LEFT, E_UPDATED_WITHIN, m_filter, m_nMask |
| Constructor Summary | |
|---|---|
CacheEventFilter()Default constructor (necessary for the ExternalizableLite interface). |
|
CacheEventFilter(Filter filter, int nMaskSynthetic)Construct a CacheEventFilter that evaluates MapEvent objects that would affect the results of a keySet filter issued by a previous call to QueryMap.keySet(com.tangosol.util.Filter). |
|
CacheEventFilter(int nMask, Filter filter, int nMaskSynthetic)Construct a CacheEventFilter that evaluates MapEvent objects based on the specified combination of event types. |
|
CacheEventFilter(int nMask, int nMaskSynthetic)Construct a CacheEventFilter that evaluates MapEvent objects based on the specified combination of event types. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)Compare the CacheEventFilter with another object to determine equality. |
boolean |
evaluate(java.lang.Object o)Apply the test to the object. |
protected java.lang.String |
getDescription()Get the filter's description. |
int |
hashCode()Determine a hash value for the CacheEventFilter object according to the general Object.hashCode() contract. |
void |
readExternal(java.io.DataInput in)Restore the contents of this object by loading the object's state from the passed DataInput object. |
void |
readExternal(PofReader in)Restore the contents of a user type instance by reading its state using the specified PofReader object. |
void |
writeExternal(java.io.DataOutput out)Save the contents of this object by storing the object's state into the passed DataOutput object. |
void |
writeExternal(PofWriter out)Save the contents of a POF user type instance by writing its state using the specified PofWriter object. |
| Methods inherited from class com.tangosol.util.filter.MapEventFilter |
|---|
getEventMask, getFilter, toString |
| Methods inherited from class com.tangosol.util.BitHelper |
|---|
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString |
| Field Detail |
|---|
public static final int E_SYNTHETIC
public static final int E_NATURAL
protected int m_nMaskSynthetic
| Constructor Detail |
|---|
public CacheEventFilter()
public CacheEventFilter(int nMask,
int nMaskSynthetic)
Using this constructor is equivalent to: new CacheEventFilter(nMask, null, nMaskSynthetic);
nMask - any combination of E_INSERTED, E_UPDATED and E_DELETED, E_UPDATED_ENTERED, E_UPDATED_WITHIN, E_UPDATED_LEFTnMaskSynthetic - any combination of E_SYNTHETIC and E_NATURAL
public CacheEventFilter(Filter filter,
int nMaskSynthetic)
QueryMap.keySet(com.tangosol.util.Filter). It is possible to easily implement continuous query functionality.
Using this constructor is equivalent to: new CacheEventFilter(E_KEYSET, filter, nMaskSynthetic);
filter - the filter passed previously to a keySet() query methodnMaskSynthetic - any combination of E_SYNTHETIC and E_NATURAL
public CacheEventFilter(int nMask,
Filter filter,
int nMaskSynthetic)
nMask - combination of any of the E_* valuesfilter - (optional) the filter used for evaluating event valuesnMaskSynthetic - any combination of E_SYNTHETIC and E_NATURAL| Method Detail |
|---|
public boolean evaluate(java.lang.Object o)
evaluate in interface Filterevaluate in class MapEventFiltero - the object to testpublic boolean equals(java.lang.Object o)
equals in class MapEventFilterpublic int hashCode()
Object.hashCode() contract.hashCode in class MapEventFilterprotected java.lang.String getDescription()
getDescription in class MapEventFilter
public void readExternal(java.io.DataInput in)
throws java.io.IOException
readExternal in interface ExternalizableLitereadExternal in class MapEventFilterin - the DataInput stream to read data from in order to restore the state of this objectjava.io.IOException - if an I/O exception occursjava.io.NotActiveException - if the object is not in its initial state, and therefore cannot be deserialized into
public void writeExternal(java.io.DataOutput out)
throws java.io.IOException
writeExternal in interface ExternalizableLitewriteExternal in class MapEventFilterout - the DataOutput stream to write the state of this object tojava.io.IOException - if an I/O exception occurs
public void readExternal(PofReader in)
throws java.io.IOException
readExternal in interface PortableObjectreadExternal in class MapEventFilterin - the PofReader from which to read the object's statejava.io.IOException - if an I/O error occurs
public void writeExternal(PofWriter out)
throws java.io.IOException
writeExternal in interface PortableObjectwriteExternal in class MapEventFilterout - the PofWriter to which to write the object's statejava.io.IOException - if an I/O error occurs
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||