com.espertech.esper.epl.view
Class OutputConditionPolledCount

java.lang.Object
  extended by com.espertech.esper.epl.view.OutputConditionPolledCount
All Implemented Interfaces:
OutputConditionPolled

public final class OutputConditionPolledCount
extends java.lang.Object
implements OutputConditionPolled

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 Summary
OutputConditionPolledCount(int eventRate, VariableReader variableReader)
          Constructor.
 
Method Summary
 java.lang.String toString()
           
 boolean 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

OutputConditionPolledCount

public OutputConditionPolledCount(int eventRate,
                                  VariableReader variableReader)
Constructor.

Parameters:
eventRate - is the number of old or new events that must arrive in order for the condition to be satisfied
variableReader - is for reading the variable value, if a variable was supplied, else null
Method Detail

updateOutputCondition

public final boolean updateOutputCondition(int newDataCount,
                                           int oldDataCount)
Description copied from interface: OutputConditionPolled
Update the output condition.

Specified by:
updateOutputCondition in interface OutputConditionPolled
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

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