Class InstrumentedListenerAdapter

All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable, NotificationQueue.Dependency, LivenessManager, LivenessNode, LivenessReferent, Listener, ListenerBase, Serializable
Direct Known Subclasses:
DynamicTableToAdoConverter, TableLogger

public abstract class InstrumentedListenerAdapter
extends InstrumentedListener
This class is used for Listeners that represent "leaf" nodes in the update propagation tree. It provides an optional retention cache, to prevent listeners from being garbage collected. For creating internally ticking table nodes, instead use BaseTable.ListenerImpl
See Also:
Serialized Form
  • Field Details

  • Constructor Details

    • InstrumentedListenerAdapter

      public InstrumentedListenerAdapter​(DynamicTable source)
      Create an instrumented listener for source. The listener will be retained and no description is provided.
      Parameters:
      source - The source table this listener will subscribe to - needed for preserving referential integrity.
    • InstrumentedListenerAdapter

      public InstrumentedListenerAdapter​(@Nullable String description, DynamicTable source)
      Create an instrumented listener for source. The listener will be retained and no description is provided.
      Parameters:
      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.
    • InstrumentedListenerAdapter

      public InstrumentedListenerAdapter​(@Nullable String description, DynamicTable source, boolean retain)
      Parameters:
      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.
  • Method Details