public class UpdateTimerCommand extends Object implements org.drools.core.command.impl.ExecutableCommand<Void>, org.kie.internal.command.ProcessInstanceIdCommand
Modifier and Type | Field and Description |
---|---|
protected long |
delay |
protected long |
period |
protected long |
processInstanceId |
protected int |
repeatLimit |
protected long |
timerId |
protected String |
timerName |
Constructor and Description |
---|
UpdateTimerCommand(long processInstanceId,
long timerId,
long delay) |
UpdateTimerCommand(long processInstanceId,
long timerId,
long period,
int repeatLimit) |
UpdateTimerCommand(long processInstanceId,
long timerId,
long delay,
long period,
int repeatLimit) |
UpdateTimerCommand(long processInstanceId,
String timerName,
long delay) |
UpdateTimerCommand(long processInstanceId,
String timerName,
long period,
int repeatLimit) |
UpdateTimerCommand(long processInstanceId,
String timerName,
long delay,
long period,
int repeatLimit) |
Modifier and Type | Method and Description |
---|---|
protected long |
calculateDelay(long delay,
TimerInstance timer) |
Void |
execute(org.kie.api.runtime.Context context) |
Long |
getProcessInstanceId() |
protected TimerManager |
getTimerManager(org.kie.api.runtime.KieSession ksession) |
protected TimerInstance |
rescheduleTimer(TimerInstance timer,
TimerManager tm) |
void |
setProcessInstanceId(Long procInstId) |
String |
toString() |
protected long processInstanceId
protected long timerId
protected String timerName
protected long delay
protected long period
protected int repeatLimit
public UpdateTimerCommand(long processInstanceId, String timerName, long delay)
public UpdateTimerCommand(long processInstanceId, String timerName, long period, int repeatLimit)
public UpdateTimerCommand(long processInstanceId, String timerName, long delay, long period, int repeatLimit)
public UpdateTimerCommand(long processInstanceId, long timerId, long delay)
public UpdateTimerCommand(long processInstanceId, long timerId, long period, int repeatLimit)
public UpdateTimerCommand(long processInstanceId, long timerId, long delay, long period, int repeatLimit)
public Void execute(org.kie.api.runtime.Context context)
execute
in interface org.drools.core.command.impl.ExecutableCommand<Void>
public void setProcessInstanceId(Long procInstId)
setProcessInstanceId
in interface org.kie.internal.command.ProcessInstanceIdCommand
public Long getProcessInstanceId()
getProcessInstanceId
in interface org.kie.internal.command.ProcessInstanceIdCommand
protected TimerManager getTimerManager(org.kie.api.runtime.KieSession ksession)
protected long calculateDelay(long delay, TimerInstance timer)
protected TimerInstance rescheduleTimer(TimerInstance timer, TimerManager tm)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.