public class CronSequence extends java.lang.Object implements TimeSequence
TimeSequence interface realized via Cron expressions for fixed-rate Rule triggers.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE |
| Constructor and Description |
|---|
CronSequence()
Mandatory for the
Externalizable instances empty constructor. |
CronSequence(java.lang.String cronExpression)
Creates a
CronSequence instance with given Cron expression. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCronExpression()
Returns the Cron expression with which this object is created.
|
java.lang.String |
getTextRepresentation()
Implements the text representation, which in this case is the Cron expression itself.
|
java.lang.String |
getType()
Returns the TimeConstraint implementation type:
TYPE. |
void |
readObject(java.io.InputStream iStream)
Serialization method.
|
java.lang.String |
toString() |
void |
writeObject(java.io.OutputStream oStream)
Serialization method.
|
public static final java.lang.String TYPE
public CronSequence()
Externalizable instances empty constructor.public CronSequence(java.lang.String cronExpression)
CronSequence instance with given Cron expression. Examples:
0 0 9-18 ? * MON-FRI: defines the Rule should be fired at 9:00, 10:00... 18:00, every working day (Monday to Friday)
0 0 0-2 * * ?: defines the Rule should be fired at 00am, 01:00 am and 02:00 every morning.
0 0 10 01 * ?: defines the Rule should be fired at 10:00 am on the 1st day of each month .cronExpression - Cron experssionpublic void readObject(java.io.InputStream iStream)
throws java.lang.Exception
readObject in interface ExternalizableiStream - input stream.java.lang.Exception - if serialization error appears.public void writeObject(java.io.OutputStream oStream)
throws java.lang.Exception
writeObject in interface ExternalizableoStream - input stream.java.lang.Exception - if serialization error appears.public java.lang.String getType()
TYPE.getType in interface TimeSequencepublic java.lang.String getTextRepresentation()
getTextRepresentation in interface TimeSequencepublic java.lang.String getCronExpression()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.