Class InstrumentedShiftAwareListenerAdapter

All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable, NotificationQueue.Dependency, LivenessManager, LivenessNode, LivenessReferent, ListenerBase, ShiftAwareListener, Serializable
Direct Known Subclasses:
AddedTableLoggingListener, FullTableLoggingListener, ToMapListener

public abstract class InstrumentedShiftAwareListenerAdapter
extends InstrumentedShiftAwareListener
This class is used for ShiftAwareListeners 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.ShiftAwareListenerImpl
See Also:
Serialized Form
  • Field Details

  • Constructor Details

    • InstrumentedShiftAwareListenerAdapter

      public InstrumentedShiftAwareListenerAdapter​(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.
    • InstrumentedShiftAwareListenerAdapter

      public InstrumentedShiftAwareListenerAdapter​(@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.
    • InstrumentedShiftAwareListenerAdapter

      public InstrumentedShiftAwareListenerAdapter​(@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