com.espertech.esper.epl.view
Class OutputConditionCount

java.lang.Object
  extended by com.espertech.esper.epl.view.OutputConditionBase
      extended by com.espertech.esper.epl.view.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.


Field Summary
 
Fields inherited from class com.espertech.esper.epl.view.OutputConditionBase
outputCallback
 
Constructor Summary
OutputConditionCount(OutputCallback outputCallback, long eventRate, VariableReader variableReader)
           
 
Method Summary
 int getNewEventsCount()
          Returns the number of new events.
 int getOldEventsCount()
          Returns the number of old events.
 void terminated()
           
 java.lang.String toString()
           
 void updateOutputCondition(int newDataCount, int oldDataCount)
          Update the output condition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OutputConditionCount

public OutputConditionCount(OutputCallback outputCallback,
                            long eventRate,
                            VariableReader variableReader)
Method Detail

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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

terminated

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

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com