public class CompositeMaxDurationTrigger extends Object implements Trigger, Externalizable
| Constructor and Description |
|---|
CompositeMaxDurationTrigger() |
CompositeMaxDurationTrigger(Date maxDurationTimestamp,
Trigger timerTrigger) |
| Modifier and Type | Method and Description |
|---|---|
Date |
getMaxDurationTimestamp() |
Date |
getTimerCurrentDate() |
Trigger |
getTimerTrigger() |
Date |
hasNextFireTime()
This method is used to query the trigger about the existence of a
possible next fire time, but WITHOUT changing any internal state
of the trigger.
|
Date |
nextFireTime()
This method returns the date of the next fire time and updates
the internal state of the Trigger to the following fire time
if one exists.
|
void |
readExternal(ObjectInput in) |
void |
setMaxDurationTimestamp(Date maxDurationTimestamp) |
void |
setTimerCurrentDate(Date timerCurrentDate) |
void |
setTimerTrigger(Trigger timerTrigger) |
void |
writeExternal(ObjectOutput out) |
public Date hasNextFireTime()
TriggerhasNextFireTime in interface Triggerpublic Date nextFireTime()
TriggernextFireTime in interface Triggerpublic Date getTimerCurrentDate()
public void setTimerCurrentDate(Date timerCurrentDate)
public Trigger getTimerTrigger()
public void setTimerTrigger(Trigger timerTrigger)
public Date getMaxDurationTimestamp()
public void setMaxDurationTimestamp(Date maxDurationTimestamp)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.