public interface CommandSummaryHandler
CommandErrorHandler
, CommandInputHandler
or CommandOutputHandler
with an enhanced
completion handler
that is provided with a summary
of the
command that was executed.
Some handlers need better insight into how the command they were attached to completed, rather than simply knowing
when completion happens. For example, handlers which are attached to callbacks may need to know whether the command
succeeded or failed so they can notify the callback appropriately. The base complete()
method inherited from
the handler interfaces does not offer that level of detail.
Modifier and Type | Method and Description |
---|---|
void |
onComplete(CommandSummary summary)
Notifies the handler that the
command it was attached to has completed, and provides a summary
of the command. |
void onComplete(@Nonnull CommandSummary summary) throws com.atlassian.utils.process.ProcessException
command
it was attached to has completed, and provides a summary
of the command.summary
- the command's summarycom.atlassian.utils.process.ProcessException
- if processing the completion results in an exceptionCopyright © 2019 Atlassian. All rights reserved.