org.axonframework.commandhandling
Interface InterceptorChain

All Known Implementing Classes:
DefaultInterceptorChain

public interface InterceptorChain

The interceptor chain manages the flow of a command through a chain of interceptors and ultimately to the command handler. Interceptors may continue processing via this chain by calling the proceed() or proceed(CommandMessage) methods. Alternatively, they can block processing by returning without calling either of these methods.

Since:
0.5
Author:
Allard Buijze

Method Summary
 Object proceed()
          Signals the Interceptor Chain to continue processing the incoming (original) command.
 Object proceed(CommandMessage<?> command)
          Signals the Interceptor Chain to continue processing the given command.
 

Method Detail

proceed

Object proceed()
               throws Throwable
Signals the Interceptor Chain to continue processing the incoming (original) command.

Returns:
The return value of the command execution, if any
Throws:
Throwable - any exceptions thrown by interceptors or the command handler
Since:
0.7

proceed

Object proceed(CommandMessage<?> command)
               throws Throwable
Signals the Interceptor Chain to continue processing the given command.

Parameters:
command - The command being executed
Returns:
The return value of the command execution, if any
Throws:
Throwable - any exceptions thrown by interceptors or the command handler


Copyright © 2010-2016. All Rights Reserved.