public abstract class InstrumentedListenerAdapter extends InstrumentedListener
BaseTable.ListenerImpl
InstrumentedListener.ErrorNotification, InstrumentedListener.Notification
Modifier and Type | Field and Description |
---|---|
protected DynamicTable |
source |
Constructor and Description |
---|
InstrumentedListenerAdapter(DynamicTable source)
Create an instrumented listener for source.
|
InstrumentedListenerAdapter(String description,
DynamicTable source)
Create an instrumented listener for source.
|
InstrumentedListenerAdapter(String description,
DynamicTable source,
boolean retain) |
Modifier and Type | Method and Description |
---|---|
void |
onFailureInternal(Throwable originalException,
UpdatePerformanceTracker.Entry sourceEntry)
Called when the source table produces an error
|
abstract void |
onUpdate(Index added,
Index removed,
Index modified)
Process notification of table changes.
|
append, getEntry, getErrorNotification, getNotification, onFailure, satisfied, setInitialImage, setVerboseLogging
@ReferentialIntegrity protected final DynamicTable source
public InstrumentedListenerAdapter(DynamicTable source)
source
- The source table this listener will subscribe to - needed for preserving referential integrity.public InstrumentedListenerAdapter(@Nullable String description, DynamicTable source)
description
- A description for the UpdatePerformanceTracker to append to its entry description.source
- The source table this listener will subscribe to - needed for preserving referential integrity.public InstrumentedListenerAdapter(@Nullable String description, DynamicTable source, boolean retain)
description
- A description for the UpdatePerformanceTracker to append to its entry description.source
- The source table this listener will subscribe to - needed for preserving referential integrity.retain
- Whether a hard reference to this listener should be maintained to prevent it from being collected.public abstract void onUpdate(Index added, Index removed, Index modified)
Listener
onUpdate
in interface Listener
onUpdate
in class InstrumentedListener
added
- rows addedremoved
- rows removedmodified
- rows modifiedpublic void onFailureInternal(Throwable originalException, UpdatePerformanceTracker.Entry sourceEntry)
onFailureInternal
in class InstrumentedListener
originalException
- the original throwable that caused this errorsourceEntry
- the performance tracker entry that was active when the error occurred