public final class TupleRemovedEvent extends AbstractTupleEvent
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.keyData, tuple| Constructor and Description |
|---|
TupleRemovedEvent(java.lang.Object source,
java.lang.Long key,
Tuple tuple)
Deprecated.
|
TupleRemovedEvent(java.lang.Object source,
java.lang.Long oldKey,
Tuple tuple,
Tuple keyData,
java.util.List<com.streambase.liveview.client.internal.TupleFieldComparator> fieldComparators) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(QueryListener listener)
Dispatches this event to the listener
|
getKey, getKeyValue, getTuplepublic TupleRemovedEvent(java.lang.Object source,
java.lang.Long key,
Tuple tuple)
source - the source of the eventkey - the key of the tupletuple - the tuple being removedpublic TupleRemovedEvent(java.lang.Object source,
java.lang.Long oldKey,
Tuple tuple,
Tuple keyData,
java.util.List<com.streambase.liveview.client.internal.TupleFieldComparator> fieldComparators)
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.public void dispatch(QueryListener listener)
dispatch in class AbstractQueryEventlistener - the query listener