@Managed public abstract class Timed extends Event
_DEFAULT_RETRY_ON_EXCEPTION, _DEFAULT_TIME_TO_LIVE, _INVALID_TIMER_IDENTIFIER, _TIME_TO_LIVE_UNITS_DEFAULT, TIME_TO_LIVE_UNITS_DAYS, TIME_TO_LIVE_UNITS_HOURS, TIME_TO_LIVE_UNITS_MILLISECONDS, TIME_TO_LIVE_UNITS_MINUTES, TIME_TO_LIVE_UNITS_SECONDSINVALID_TYPE_IDENTIFIER| Constructor and Description |
|---|
Timed()
Java constructor
|
Timed(long id)
Rule or Rule Function constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this event.
|
java.lang.String |
getClosure()
Get the closure for this timed event
|
java.lang.String |
getDestination()
Get the event destination
|
protected java.lang.Boolean |
getDispatched()
Get the current dispatch state
|
boolean |
getFired()
Get the fired value
|
PayLoad |
getPayLoad()
Get the event payload
|
java.lang.Boolean |
getRetryOnException()
Get the retry-on-exception value for this event.
|
java.lang.Long |
getTimeToLive()
Get the Time-To-Live value for this event.
|
java.lang.String |
getTimeToLiveUnits()
Get the Time-To-Live units for this event.
|
void |
setDestination(java.lang.String destination)
Set the event destination
|
protected void |
setDispatched()
Set dispatched to true
|
protected void |
setInterval(long interval)
Set the repeat interval
|
protected void |
setIntervalUnits(java.lang.String units)
Set the expiration interval units
|
protected void |
setRetryOnException(java.lang.Boolean retryOnException)
Set retry on exception
|
protected void |
setTimeToLive(java.lang.Long timeToLive)
Set the time to live for this event
|
protected void |
setTimeToLiveUnits(java.lang.String timeToLiveUnits)
Set time to live units
|
java.lang.String |
toString() |
protected void |
updatePayLoad(PayLoad payload)
Update the internal payload
|
protected void |
updateProperties()
Update event handle properties from shared memory
|
protected abstract void |
updateUserProperties(com.tibco.cep.runtime.model.event.impl.SimpleEventImpl eventImpl)
Update user properties from shared memory
|
assertEvent, enforceDispatchState, generate, getPayload, setPayLoad, setPayloadassertEntity, checkActive, getExtId, getHandle, getHandle, getId, load, mapArray, mapHandle, mapHandleArray, registerpublic Timed()
public Timed(long id)
id - Unique identifierpublic final void delete()
If this event currently has a TTL expiration timer scheduled, the timer is canceled.
public final java.lang.Boolean getRetryOnException()
EventgetRetryOnException in class Eventpublic final java.lang.Long getTimeToLive()
EventgetTimeToLive in class Eventpublic final java.lang.String getTimeToLiveUnits()
EventgetTimeToLiveUnits in class Eventprotected abstract void updateUserProperties(com.tibco.cep.runtime.model.event.impl.SimpleEventImpl eventImpl)
eventImpl - Event handle to updateprotected final void setRetryOnException(java.lang.Boolean retryOnException)
EventsetRetryOnException in class EventretryOnException - Retry on exception valuepublic final PayLoad getPayLoad()
EventgetPayLoad in class Eventpublic final void setDestination(java.lang.String destination)
EventThe destination cannot be changed after an event has been asserted.
Destination cannot be null.
setDestination in class Eventdestination - Destination valuepublic final java.lang.String getDestination()
EventgetDestination in class Eventprotected final void updatePayLoad(PayLoad payload)
EventupdatePayLoad in class Eventpayload - Payload valueprotected final void setTimeToLive(java.lang.Long timeToLive)
EventsetTimeToLive in class EventtimeToLive - Time to live value.protected final void setTimeToLiveUnits(java.lang.String timeToLiveUnits)
EventsetTimeToLiveUnits in class EventtimeToLiveUnits - Time to live unitsprotected final java.lang.Boolean getDispatched()
EventgetDispatched in class Eventprotected final void setDispatched()
EventsetDispatched in class Eventpublic final java.lang.String getClosure()
protected final void setInterval(long interval)
interval - Repeat intervalprotected final void setIntervalUnits(java.lang.String units)
units - Repeat interval unitspublic final boolean getFired()
protected final void updateProperties()
EventupdateProperties in class Event