Class ContextDescriptorConditionCrontab
java.lang.Object
com.espertech.esper.common.client.soda.ContextDescriptorConditionCrontab
- All Implemented Interfaces:
ContextDescriptorCondition
,Serializable
Context condition that start/initiated or ends/terminates context partitions based on a crontab expression.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.ContextDescriptorConditionCrontab
(List<List<Expression>> crontabExpressions, boolean now) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the crontab expressions.boolean
isNow()
Returns "now" indicatorvoid
setCrontabExpressions
(List<List<Expression>> crontabExpressions) Sets the crontab expressions.void
setNow
(boolean now) Sets "now" indicatorvoid
toEPL
(StringWriter writer, EPStatementFormatter formatter) Populate the EPL.
-
Constructor Details
-
ContextDescriptorConditionCrontab
public ContextDescriptorConditionCrontab()Ctor. -
ContextDescriptorConditionCrontab
Ctor.- Parameters:
crontabExpressions
- crontab expressions returning number sets for each crontab positionnow
- indicator whethet to include "now"
-
-
Method Details
-
getCrontabExpressions
Returns the crontab expressions.- Returns:
- crontab
-
setCrontabExpressions
Sets the crontab expressions.- Parameters:
crontabExpressions
- to set
-
toEPL
Description copied from interface:ContextDescriptorCondition
Populate the EPL.- Specified by:
toEPL
in interfaceContextDescriptorCondition
- Parameters:
writer
- outputformatter
- formatter
-
isNow
public boolean isNow()Returns "now" indicator- Returns:
- "now" indicator
-
setNow
public void setNow(boolean now) Sets "now" indicator- Parameters:
now
- "now" indicator
-