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
The event dispatched when an existing Tuple is removed.
The inherited method
AbstractTupleEvent.getTuple()
will return null unless the event was propagated from a LiveResult
.
The LiveResult
will propagate the removed tuple since it maintains a local copy of all tuples in the query result.- See Also:
-
Field Summary
Fields inherited from class com.streambase.liveview.client.AbstractTupleEvent
keyData, tuple
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTupleRemovedEvent
(Object source, Long key, Tuple tuple) Deprecated.TupleRemovedEvent
(Object source, Long oldKey, Tuple tuple, Tuple keyData, List<com.streambase.liveview.client.internal.TupleFieldComparator> fieldComparators) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatch
(QueryListener listener) Dispatches this event to the listenerMethods inherited from class com.streambase.liveview.client.AbstractTupleEvent
getComparators, getKey, getKeyValue, getTuple, setKey
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
TupleRemovedEvent
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<com.streambase.liveview.client.internal.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 Details
-
dispatch
Dispatches this event to the listener- Specified by:
dispatch
in classAbstractQueryEvent
- Parameters:
listener
- the query listener
-