Class OutputConditionCount

java.lang.Object
com.espertech.esper.common.internal.epl.output.condition.OutputConditionBase
com.espertech.esper.common.internal.epl.output.condition.OutputConditionCount
All Implemented Interfaces:
OutputCondition

public final class OutputConditionCount extends OutputConditionBase implements OutputCondition
Output limit condition that is satisfied when either the total number of new events arrived or the total number of old events arrived is greater than a preset value.
  • Constructor Details

  • Method Details

    • getNewEventsCount

      public int getNewEventsCount()
      Returns the number of new events.
      Returns:
      number of new events
    • getOldEventsCount

      public int getOldEventsCount()
      Returns the number of old events.
      Returns:
      number of old events
    • updateOutputCondition

      public final void updateOutputCondition(int newDataCount, int oldDataCount)
      Description copied from interface: OutputCondition
      Update the output condition.
      Specified by:
      updateOutputCondition in interface OutputCondition
      Parameters:
      newDataCount - - number of new events incoming
      oldDataCount - - number of old events incoming
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • terminated

      public void terminated()
      Specified by:
      terminated in interface OutputCondition
      Overrides:
      terminated in class OutputConditionBase
    • stopOutputCondition

      public void stopOutputCondition()
      Specified by:
      stopOutputCondition in interface OutputCondition