Class InstrumentedTableUpdateListenerAdapter

All Implemented Interfaces:
LogOutputAppendable, LivenessManager, LivenessNode, LivenessReferent, TableListener, TableUpdateListener, NotificationQueue.Dependency, SystemicObject<InstrumentedTableUpdateListenerAdapter>, Serializable
Direct Known Subclasses:
PythonListenerAdapter, PythonReplayListenerAdapter, ToMapListener

public abstract class InstrumentedTableUpdateListenerAdapter extends InstrumentedTableUpdateListener implements SystemicObject<InstrumentedTableUpdateListenerAdapter>
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.ListenerImpl
See Also:
  • Field Details

  • Constructor Details

    • InstrumentedTableUpdateListenerAdapter

      public InstrumentedTableUpdateListenerAdapter(@NotNull @NotNull Table source, boolean retain)
      Create an instrumented listener for source. No description is provided.
      Parameters:
      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. In most scenarios, it's better to specify false and keep a reference in the calling code.
    • InstrumentedTableUpdateListenerAdapter

      public InstrumentedTableUpdateListenerAdapter(@Nullable @Nullable String description, @NotNull @NotNull Table 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. In most scenarios, it's better to specify false and keep a reference in the calling code.
  • Method Details