Class NullIndexUpdateNotification

All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable, NotificationQueue.IndexUpdateNotification, NotificationQueue.Notification, IntrusiveDoublyLinkedNode<NotificationQueue.Notification>, Runnable

public class NullIndexUpdateNotification
extends AbstractIndexUpdateNotification
This is a notification that does not actually notify anything. It is useful for the SwapListener to have the ability to create a notification for its parent before there is anything to notify.
  • Constructor Details

  • Method Details

    • isTerminal

      public boolean isTerminal()
      Description copied from interface: NotificationQueue.Notification
      Terminal notifications guarantee that they will not queue additional notifications or mutate data structures that should result in additional notifications. They are in turn guaranteed to be called after all non-terminal notifications for a given cycle through the notification queue.
      Specified by:
      isTerminal in interface NotificationQueue.Notification
      Overrides:
      isTerminal in class AbstractNotification
      Returns:
      True iff this notification is terminal.
    • canExecute

      public boolean canExecute​(long step)
      Description copied from interface: NotificationQueue.Notification
      Can this notification be executed? That is, are all of it's dependencies satisfied.
      Parameters:
      step - The step for which we are testing satisfaction
      Returns:
      true if this notification can be executed, false if it has unmet dependencies
    • append

      public com.fishlib.base.log.LogOutput append​(com.fishlib.base.log.LogOutput logOutput)
      Specified by:
      append in interface com.fishlib.base.log.LogOutputAppendable
      Overrides:
      append in class AbstractNotification
    • run

      public final void run()