public class FailedJobListener extends Object implements TransactionListener, CommandContextListener
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected Throwable |
exception |
protected String |
jobId |
Constructor and Description |
---|
FailedJobListener(CommandExecutor commandExecutor,
String jobId) |
FailedJobListener(CommandExecutor commandExecutor,
String jobId,
Throwable exception) |
Modifier and Type | Method and Description |
---|---|
void |
execute(CommandContext commandContext) |
Throwable |
getException() |
void |
onCommandContextClose(CommandContext commandContext) |
void |
onCommandFailed(CommandContext commandContext,
Throwable t) |
void |
setException(Throwable exception) |
protected CommandExecutor commandExecutor
protected String jobId
protected Throwable exception
public FailedJobListener(CommandExecutor commandExecutor, String jobId, Throwable exception)
public FailedJobListener(CommandExecutor commandExecutor, String jobId)
public void execute(CommandContext commandContext)
execute
in interface TransactionListener
public void setException(Throwable exception)
public Throwable getException()
public void onCommandContextClose(CommandContext commandContext)
onCommandContextClose
in interface CommandContextListener
public void onCommandFailed(CommandContext commandContext, Throwable t)
onCommandFailed
in interface CommandContextListener
Copyright © 2015. All rights reserved.