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, tuplesource| Constructor and Description |
|---|
TupleRemovedEvent(Object source,
Long key,
Tuple tuple)
Deprecated.
|
TupleRemovedEvent(Object source,
Long oldKey,
Tuple tuple,
Tuple keyData,
List<TupleFieldComparator> fieldComparators) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(QueryListener listener)
Dispatches this event to the listener
|
getComparators, getKey, getKeyValue, getTuple, setKeygetSource, toStringpublic TupleRemovedEvent(Object source, Long key, Tuple tuple)
source - the source of the eventkey - the key of the tupletuple - the tuple being removedpublic TupleRemovedEvent(Object source, Long oldKey, Tuple tuple, Tuple keyData, List<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 listenerCopyright © 2015–2018 Cloud Software Group, Inc.. All rights reserved.