Package org.camunda.bpm.engine.impl.cmd
Class JobRetryCmd
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cmd.JobRetryCmd
-
- All Implemented Interfaces:
Command<java.lang.Object>
- Direct Known Subclasses:
DefaultJobRetryCmd
public abstract class JobRetryCmd extends java.lang.Object implements Command<java.lang.Object>
- Author:
- Roman Smirnov
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Throwableexceptionprotected java.lang.StringjobIdprotected static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description JobRetryCmd(java.lang.String jobId, java.lang.Throwable exception)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddecrementRetries(JobEntity job)protected java.lang.StringgetExceptionStacktrace()protected JobEntitygetJob()protected voidlogException(JobEntity job)protected voidnotifyAcquisition(CommandContext commandContext)protected booleanshouldDecrementRetriesFor(java.lang.Throwable t)-
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
execute, isRetryable
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
- See Also:
- Constant Field Values
-
jobId
protected java.lang.String jobId
-
exception
protected java.lang.Throwable exception
-
-
Method Detail
-
getJob
protected JobEntity getJob()
-
logException
protected void logException(JobEntity job)
-
decrementRetries
protected void decrementRetries(JobEntity job)
-
getExceptionStacktrace
protected java.lang.String getExceptionStacktrace()
-
shouldDecrementRetriesFor
protected boolean shouldDecrementRetriesFor(java.lang.Throwable t)
-
notifyAcquisition
protected void notifyAcquisition(CommandContext commandContext)
-
-