com.espertech.esper.client.soda
Class ContextDescriptorConditionCrontab

java.lang.Object
  extended by com.espertech.esper.client.soda.ContextDescriptorConditionCrontab
All Implemented Interfaces:
ContextDescriptorCondition, java.io.Serializable

public class ContextDescriptorConditionCrontab
extends java.lang.Object
implements ContextDescriptorCondition

Context condition that start/initiated or ends/terminates context partitions based on a crontab expression.

See Also:
Serialized Form

Constructor Summary
ContextDescriptorConditionCrontab()
          Ctor.
ContextDescriptorConditionCrontab(java.util.List<Expression> crontabExpressions, boolean now)
          Ctor.
 
Method Summary
 java.util.List<Expression> getCrontabExpressions()
          Returns the crontab expressions.
 boolean isNow()
          Returns "now" indicator
 void setCrontabExpressions(java.util.List<Expression> crontabExpressions)
          Sets the crontab expressions.
 void setNow(boolean now)
          Sets "now" indicator
 void toEPL(java.io.StringWriter writer, EPStatementFormatter formatter)
          Populate the EPL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextDescriptorConditionCrontab

public ContextDescriptorConditionCrontab()
Ctor.


ContextDescriptorConditionCrontab

public ContextDescriptorConditionCrontab(java.util.List<Expression> crontabExpressions,
                                         boolean now)
Ctor.

Parameters:
crontabExpressions - crontab expressions returning number sets for each crontab position
now - indicator whethet to include "now"
Method Detail

getCrontabExpressions

public java.util.List<Expression> getCrontabExpressions()
Returns the crontab expressions.

Returns:
crontab

setCrontabExpressions

public void setCrontabExpressions(java.util.List<Expression> crontabExpressions)
Sets the crontab expressions.

Parameters:
crontabExpressions - to set

toEPL

public void toEPL(java.io.StringWriter writer,
                  EPStatementFormatter formatter)
Description copied from interface: ContextDescriptorCondition
Populate the EPL.

Specified by:
toEPL in interface ContextDescriptorCondition
Parameters:
writer - output
formatter - formatter

isNow

public boolean isNow()
Returns "now" indicator

Returns:
"now" indicator

setNow

public void setNow(boolean now)
Sets "now" indicator

Parameters:
now - "now" indicator

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