T - the type being watchedpublic interface Watcher<T>
| Modifier and Type | Method and Description |
|---|---|
void |
endOfData()
Called once if there is no data when the watch is created
or if there is data, the first time the watch exhausts all existing data.
|
default @Nullable java.lang.String |
getConsumerNamePrefix()
The watcher can supply a prefix to use on the consumer name
that is generated when creating the internal watch consumer.
|
void |
watch(T t)
Called when an object has been updated.
|
void watch(T t)
t - The watched objectvoid endOfData()
default @Nullable java.lang.String getConsumerNamePrefix()