Class AppendOnlyAssertionInstrumentedListenerAdapter

All Implemented Interfaces:
LogOutputAppendable, LivenessManager, LivenessNode, LivenessReferent, TableListener, TableUpdateListener, NotificationQueue.Dependency, Serializable

public class AppendOnlyAssertionInstrumentedListenerAdapter extends BaseTable.ListenerImpl
See Also:
  • Constructor Details

    • AppendOnlyAssertionInstrumentedListenerAdapter

      public AppendOnlyAssertionInstrumentedListenerAdapter(String description, Table parent, BaseTable dependent)
  • Method Details

    • onUpdate

      public void onUpdate(TableUpdate upstream)
      Description copied from interface: TableUpdateListener
      Process notification of table changes.

      The TableUpdateListener onUpdate call executes within the UpdateGraph refresh loop. Any tables used within the listener's onUpdate call must have already been refreshed. Using the typical pattern of a Listener that is listening to a single table, with Table.addUpdateListener(TableUpdateListener), this is trivially true.

      When the listener must reference more than just one parent, the tables (or other objects) it references, must be made a NotificationQueue.Dependency of the listener. For listeners that reference multiple ticking tables, a common pattern is to use a MergedListener and collection of ListenerRecorders.

      Specified by:
      onUpdate in interface TableUpdateListener
      Overrides:
      onUpdate in class BaseTable.ListenerImpl
      Parameters:
      upstream - The set of upstream table updates.