Package com.streambase.liveview.client
Class TupleRemovedEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.streambase.liveview.client.AbstractQueryEvent
-
- com.streambase.liveview.client.AbstractTupleEvent
-
- com.streambase.liveview.client.TupleRemovedEvent
-
- All Implemented Interfaces:
Serializable
public final class TupleRemovedEvent extends AbstractTupleEvent
The event dispatched when an existing Tuple is removed. The inherited methodAbstractTupleEvent.getTuple()
will return null unless the event was propagated from aLiveResult
. TheLiveResult
will propagate the removed tuple since it maintains a local copy of all tuples in the query result.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.streambase.liveview.client.AbstractTupleEvent
keyData, tuple
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description TupleRemovedEvent(Object source, Long key, Tuple tuple)
Deprecated.TupleRemovedEvent(Object source, Long oldKey, Tuple tuple, Tuple keyData, List<TupleFieldComparator> fieldComparators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispatch(QueryListener listener)
Dispatches this event to the listener-
Methods inherited from class com.streambase.liveview.client.AbstractTupleEvent
getKey, getKeyValue, getTuple
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
TupleRemovedEvent
public TupleRemovedEvent(Object source, Long key, Tuple tuple)
Deprecated.- Parameters:
source
- the source of the eventkey
- the key of the tupletuple
- the tuple being removed
-
TupleRemovedEvent
public TupleRemovedEvent(Object source, Long oldKey, Tuple tuple, Tuple keyData, List<TupleFieldComparator> fieldComparators)
- Parameters:
source
- the source of the eventoldKey
- the key of the tupletuple
- the tuple being removedkeyData
- The data for the full key. May be null only if oldKey is not 0.fieldComparators
- The pre-built set of comparators for comparing complex keys. May be null only if oldKey is not 0.
-
-
Method Detail
-
dispatch
public void dispatch(QueryListener listener)
Dispatches this event to the listener- Specified by:
dispatch
in classAbstractQueryEvent
- Parameters:
listener
- the query listener
-
-