Class PublishingVariableTest.MyVariableTableSubscriber

java.lang.Object
com.singularsys.jep.misc.publishingvariable.VariableTableSubscriber
com.singularsys.jeptests.unit.misc.PublishingVariableTest.MyVariableTableSubscriber
All Implemented Interfaces:
Flow.Subscriber<VariableTableAction>
Enclosing class:
PublishingVariableTest

public class PublishingVariableTest.MyVariableTableSubscriber extends VariableTableSubscriber
A more advances subscriber. When the appropriate method is called, it adds a item to actions.
  • Constructor Details

    • MyVariableTableSubscriber

      public MyVariableTableSubscriber()
  • Method Details

    • tableCleared

      protected void tableCleared()
      Description copied from class: VariableTableSubscriber
      Called when the variable table has been cleared. Intended to be overridden by subclasses. Default implementation does nothing.
      Overrides:
      tableCleared in class VariableTableSubscriber
    • variableChanged

      protected void variableChanged(String name, Object oldValue, Object newValue)
      Description copied from class: VariableTableSubscriber
      Called when a variable value has changed. Intended to be overridden by subclasses. Default implementation does nothing.
      Overrides:
      variableChanged in class VariableTableSubscriber
      Parameters:
      name - name of the variable
      oldValue - previous value of the variable
      newValue - value of the variable after the change
    • variableAdded

      protected void variableAdded(String name, Object value)
      Description copied from class: VariableTableSubscriber
      Called when a variable is added to the table. Intended to be overridden by subclasses. Default implementation does nothing.
      Overrides:
      variableAdded in class VariableTableSubscriber
      Parameters:
      name - the name of the variable which has been added.
      value - the value of the variable which has been added.
    • constantAdded

      protected void constantAdded(String name, Object value)
      Description copied from class: VariableTableSubscriber
      Called when a constant is added
      Overrides:
      constantAdded in class VariableTableSubscriber
      Parameters:
      name - name of variable
      value - value of variable
    • variableRemoved

      protected void variableRemoved(String name)
      Description copied from class: VariableTableSubscriber
      Called when a variable is removed from the table. Intended to be overridden by subclasses. Default implementation does nothing.
      Overrides:
      variableRemoved in class VariableTableSubscriber
      Parameters:
      name - the name of the variable which has been removed.
    • clearNonConstants

      public void clearNonConstants()
      Description copied from class: VariableTableSubscriber
      Called when the non-constant variables have been removed. Intended to be overridden by subclasses. Default implementation does nothing.
      Overrides:
      clearNonConstants in class VariableTableSubscriber
    • onComplete

      public void onComplete()
      Description copied from class: VariableTableSubscriber
      Method invoked when it is known that no additional Subscriber method invocations will occur for a Subscription that is not already terminated by error, after which no other Subscriber methods are invoked by the Subscription. The default implementation does nothing.
      Specified by:
      onComplete in interface Flow.Subscriber<VariableTableAction>
      Overrides:
      onComplete in class VariableTableSubscriber
    • onError

      public void onError(Throwable throwable)
      Description copied from class: VariableTableSubscriber
      Method invoked upon an unrecoverable error encountered by a Publisher or Subscription, after which no other Subscriber methods are invoked by the Subscription. The default implementation does nothing.
      Specified by:
      onError in interface Flow.Subscriber<VariableTableAction>
      Overrides:
      onError in class VariableTableSubscriber
      Parameters:
      throwable - the exception