Package org.camunda.bpm.engine.impl.cmd
Class SetJobRetriesCmd
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cmd.SetJobRetriesCmd
-
- All Implemented Interfaces:
java.io.Serializable
,Command<java.lang.Void>
public class SetJobRetriesCmd extends java.lang.Object implements Command<java.lang.Void>, java.io.Serializable
- Author:
- Askar Akhmerov
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
DUE_DATE
protected java.util.Date
dueDate
protected boolean
isDueDateSet
protected java.lang.String
jobDefinitionId
protected java.lang.String
jobId
protected java.util.List<java.lang.String>
jobIds
protected static CommandLogger
LOG
protected int
retries
protected static java.lang.String
RETRIES
protected static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SetJobRetriesCmd(java.lang.String jobId, java.lang.String jobDefinitionId, int retries, java.util.Date dueDate, boolean isDueDateSet)
SetJobRetriesCmd(java.util.List<java.lang.String> jobIds, int retries, java.util.Date dueDate, boolean isDueDateSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Void
execute(CommandContext commandContext)
protected java.lang.String
getLogEntryOperation()
protected void
setJobRetriesByJobDefinitionId(CommandContext commandContext)
protected void
setJobRetriesByJobId(java.lang.String jobId, CommandContext commandContext)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
- See Also:
- Constant Field Values
-
LOG
protected static final CommandLogger LOG
-
RETRIES
protected static final java.lang.String RETRIES
- See Also:
- Constant Field Values
-
DUE_DATE
protected static final java.lang.String DUE_DATE
- See Also:
- Constant Field Values
-
jobId
protected final java.lang.String jobId
-
jobDefinitionId
protected final java.lang.String jobDefinitionId
-
jobIds
protected final java.util.List<java.lang.String> jobIds
-
retries
protected final int retries
-
dueDate
protected java.util.Date dueDate
-
isDueDateSet
protected final boolean isDueDateSet
-
-
Constructor Detail
-
SetJobRetriesCmd
public SetJobRetriesCmd(java.lang.String jobId, java.lang.String jobDefinitionId, int retries, java.util.Date dueDate, boolean isDueDateSet)
-
SetJobRetriesCmd
public SetJobRetriesCmd(java.util.List<java.lang.String> jobIds, int retries, java.util.Date dueDate, boolean isDueDateSet)
-
-
Method Detail
-
execute
public java.lang.Void execute(CommandContext commandContext)
-
setJobRetriesByJobId
protected void setJobRetriesByJobId(java.lang.String jobId, CommandContext commandContext)
-
setJobRetriesByJobDefinitionId
protected void setJobRetriesByJobDefinitionId(CommandContext commandContext)
-
getLogEntryOperation
protected java.lang.String getLogEntryOperation()
-
-