public abstract class TimerData
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPEN_EJB_TIMEOUT_TRIGGER_GROUP_NAME |
static java.lang.String |
OPEN_EJB_TIMEOUT_TRIGGER_NAME_PREFIX |
protected Scheduler |
scheduler |
protected <any> |
trigger |
Constructor and Description |
---|
TimerData(long id,
EjbTimerServiceImpl timerService,
java.lang.String deploymentId,
java.lang.Object primaryKey,
java.lang.reflect.Method timeoutMethod,
TimerConfig timerConfig) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
protected void |
doReadObject(java.io.ObjectInputStream in) |
protected void |
doWriteObject(java.io.ObjectOutputStream out) |
java.lang.String |
getDeploymentId() |
long |
getId() |
java.lang.Object |
getInfo() |
java.util.Date |
getNextTimeout() |
java.lang.Object |
getPrimaryKey() |
java.lang.reflect.Method |
getTimeoutMethod() |
Timer |
getTimer() |
long |
getTimeRemaining() |
Trigger |
getTrigger() |
abstract TimerType |
getType() |
protected abstract <any> |
initializeTrigger() |
boolean |
isCancelled() |
boolean |
isExpired() |
boolean |
isNewTimer() |
boolean |
isPersistent() |
boolean |
isStopped() |
void |
newTimer() |
void |
setExpired(boolean expired) |
void |
setScheduler(Scheduler scheduler) |
void |
stop() |
public static final java.lang.String OPEN_EJB_TIMEOUT_TRIGGER_NAME_PREFIX
public static final java.lang.String OPEN_EJB_TIMEOUT_TRIGGER_GROUP_NAME
protected <any> trigger
protected Scheduler scheduler
public TimerData(long id, EjbTimerServiceImpl timerService, java.lang.String deploymentId, java.lang.Object primaryKey, java.lang.reflect.Method timeoutMethod, TimerConfig timerConfig)
public void setScheduler(Scheduler scheduler)
protected void doWriteObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
protected void doReadObject(java.io.ObjectInputStream in) throws java.io.IOException
java.io.IOException
public void stop()
public long getId()
public java.lang.String getDeploymentId()
public java.lang.Object getPrimaryKey()
public java.lang.Object getInfo()
public Timer getTimer()
public boolean isNewTimer()
public void newTimer()
public boolean isCancelled()
public void cancel()
public java.lang.reflect.Method getTimeoutMethod()
public boolean isStopped()
public boolean isPersistent()
public Trigger getTrigger()
public java.util.Date getNextTimeout()
public long getTimeRemaining()
public boolean isExpired()
public void setExpired(boolean expired)
public abstract TimerType getType()
protected abstract <any> initializeTrigger()