public class AbstractSchedule extends java.lang.Object implements XMLable, java.io.Serializable
DEFAULT_BUFFER_SIZE
Constructor and Description |
---|
AbstractSchedule()
Creates a new instance of Schedule
|
AbstractSchedule(boolean absoluteDelay_)
Creates a new instance of Schedule
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAbsoluteExpression()
Returns an expression to be evaluated to the Timestamp of the scheduled
event.
|
boolean |
getAbsoluteOrRelative() |
java.sql.Timestamp |
getAbsoluteTime()
Deprecated.
|
boolean |
getRecurring() |
Interval |
getRelativeInterval()
Returns the Interval object representing the time delay with respect to
the previous event
|
boolean |
isAbsoluteDelay()
Returns true if the event is schedule for a specific time i.e. 12:52AM on
12/18/2007 else its relative to some other event like 5 mins or 2 hrs
after the event.
|
void |
setAbsoluteDelay(boolean absoluteDealy_)
If true sets the Schedule to a specific time like 12:52AM on 12/18/2007,
else to an interval of time relative to some other event.
|
void |
setAbsoluteExpression(java.lang.String absoluteExpression_)
Sets an expression to be evaluated to the Timestamp of the scheduled
event.
|
void |
setAbsoluteOrRelative(boolean isAbsoluteOrRelative_) |
void |
setAbsoluteTime(java.sql.Timestamp absoluteTime_)
Deprecated.
use
#setAbsoluteExpression(String)) |
void |
setRecurring(boolean isRecurring_) |
void |
setRelativeInterval(Interval relativeInterval_)
Schedules an event relative to some other event.
|
java.lang.String |
toXML()
Generates an XML representation of this object (including all
child objects).
|
void |
toXML(java.lang.StringBuilder buffer_)
Appends an XML representation of this object (including all
child objects) to the given buffer.
|
public AbstractSchedule(boolean absoluteDelay_)
absoluteDealy_
- true if the event is not relative to
other event, else falsepublic AbstractSchedule()
public java.lang.String getAbsoluteExpression()
public void setAbsoluteExpression(java.lang.String absoluteExpression_)
absoluteExpression_
- a string Expressionpublic boolean isAbsoluteDelay()
public void setAbsoluteDelay(boolean absoluteDealy_)
absoluteDealy_
- true if the event is not relative to other event, else false@Deprecated public java.sql.Timestamp getAbsoluteTime()
getAbsoluteExpression()
null
@Deprecated public void setAbsoluteTime(java.sql.Timestamp absoluteTime_)
#setAbsoluteExpression(String))
absoluteTime_
- Timestamp of the exact time of the event.public Interval getRelativeInterval()
public void setRelativeInterval(Interval relativeInterval_)
relativeInterval_
- Interval object representing time delay after some other event.public java.lang.String toXML()
XMLable
StringBuilder
and call
toXML( StringBuilder )
on it.public void toXML(java.lang.StringBuilder buffer_)
XMLable
public boolean getAbsoluteOrRelative()
public void setAbsoluteOrRelative(boolean isAbsoluteOrRelative_)
public boolean getRecurring()
public void setRecurring(boolean isRecurring_)
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.