|
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_NATURAL Bitmask to select natural events. |
static int |
E_SYNTHETIC Bitmask to select synthetic events. |
protected int |
m_nMaskSynthetic Bitmask 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_NATURALpublic 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_NATURALpublic 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_NATURALMethod Detail |
---|
public boolean evaluate(java.lang.Object o)
evaluate
in interface Filter
evaluate
in class MapEventFilter
o
- the object to testpublic boolean equals(java.lang.Object o)
equals
in class MapEventFilter
public int hashCode()
Object.hashCode()
contract.hashCode
in class MapEventFilter
protected java.lang.String getDescription()
getDescription
in class MapEventFilter
public void readExternal(java.io.DataInput in) throws java.io.IOException
readExternal
in interface ExternalizableLite
readExternal
in class MapEventFilter
in
- 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 intopublic void writeExternal(java.io.DataOutput out) throws java.io.IOException
writeExternal
in interface ExternalizableLite
writeExternal
in class MapEventFilter
out
- the DataOutput stream to write the state of this object tojava.io.IOException
- if an I/O exception occurspublic void readExternal(PofReader in) throws java.io.IOException
readExternal
in interface PortableObject
readExternal
in class MapEventFilter
in
- the PofReader from which to read the object's statejava.io.IOException
- if an I/O error occurspublic void writeExternal(PofWriter out) throws java.io.IOException
writeExternal
in interface PortableObject
writeExternal
in class MapEventFilter
out
- 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 |