Class JobRetryCmd

  • All Implemented Interfaces:
    Command<java.lang.Object>

    public class JobRetryCmd
    extends java.lang.Object
    implements Command<java.lang.Object>
    • Field Detail

      • jobId

        protected java.lang.String jobId
      • exception

        protected java.lang.Throwable exception
    • Constructor Detail

      • JobRetryCmd

        public JobRetryCmd​(java.lang.String jobId,
                           java.lang.Throwable exception)
    • Method Detail

      • execute

        public java.lang.Object execute​(CommandContext commandContext)
        Specified by:
        execute in interface Command<java.lang.Object>
      • calculateDueDate

        protected java.util.Date calculateDueDate​(CommandContext commandContext,
                                                  int waitTimeInSeconds,
                                                  java.util.Date oldDate)
      • getExceptionStacktrace

        protected java.lang.String getExceptionStacktrace()