Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected Throwable |
exception |
protected String |
jobId |
Constructor and Description |
---|
FailedJobListener(CommandExecutor commandExecutor,
String jobId,
Throwable exception) |
Modifier and Type | Method and Description |
---|---|
Void |
execute(CommandContext commandContext) |
protected void |
fireHistoricJobFailedEvt(JobEntity job) |
int |
getRetriesLeft() |
void |
incrementCountRetries() |
protected void |
logJobFailure(CommandContext commandContext) |
protected CommandExecutor commandExecutor
protected String jobId
protected Throwable exception
public FailedJobListener(CommandExecutor commandExecutor, String jobId, Throwable exception)
public Void execute(CommandContext commandContext)
protected void fireHistoricJobFailedEvt(JobEntity job)
protected void logJobFailure(CommandContext commandContext)
public void incrementCountRetries()
public int getRetriesLeft()
Copyright © 2019. All rights reserved.