com.hazelcast.map.impl
Class SyntheticEventFilter

java.lang.Object
  extended by com.hazelcast.map.impl.SyntheticEventFilter
All Implemented Interfaces:
DataSerializable, EventFilter

public class SyntheticEventFilter
extends Object
implements EventFilter, DataSerializable

Wrapper class for a filter which does not want to receive synthetic events.

Synthetic events are caused by map internals such as eviction or expiration; other events are natural events like an explicit call to IMap.put(K, V) or IMap.evict(K).

This event filter is used to prevent near cache evictions caused by internal eviction or expiration operations in IMap, since near cache should use its own eviction/expiration mechanism, this filter helps to provide right near cache behavior.


Constructor Summary
SyntheticEventFilter()
           
SyntheticEventFilter(EventFilter filter)
           
 
Method Summary
 boolean equals(Object o)
           
 boolean eval(Object event)
           
 EventFilter getFilter()
           
 int hashCode()
           
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 String toString()
           
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SyntheticEventFilter

public SyntheticEventFilter()

SyntheticEventFilter

public SyntheticEventFilter(EventFilter filter)
Method Detail

getFilter

public EventFilter getFilter()

eval

public boolean eval(Object event)
Specified by:
eval in interface EventFilter

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.