@NoImplement public interface InterceptionAction
around
to control the execution of the interception chain.Modifier and Type | Method and Description |
---|---|
CompletableFuture<InterceptionEvent> |
fail(ErrorType errorType)
Interrupts the current interception chain, not running the next
interceptors in the chain and
the intercepted component. |
CompletableFuture<InterceptionEvent> |
fail(Throwable cause)
Interrupts the current interception chain, not running the next
interceptors in the chain and
the intercepted component. |
CompletableFuture<InterceptionEvent> |
proceed()
Indicates that the current interception chain must continue, proceeding with the next
handlers
in the chain (if any) and the intercepted component. |
CompletableFuture<InterceptionEvent> |
skip()
Interrupts the current interception chain, skipping the next
interceptors in the chain and the
intercepted component. |
CompletableFuture<InterceptionEvent> proceed()
handlers
in the chain (if any) and the intercepted component.CompletableFuture
using the event
that results of the remaining
handlers
of the chain and the intercepted processor.CompletableFuture<InterceptionEvent> skip()
interceptors
in the chain and the
intercepted component.
If called for a router component, the whole route (and all the components contained in it) will be skipped.
If called for an intercepting component (i.e. a splitter
), the listener components (i.e. what follows the
splitter
up to an aggregator
) are skipped as well.
CompletableFuture
using the same event
passed to the
around()
method.CompletableFuture<InterceptionEvent> fail(Throwable cause)
interceptors
in the chain and
the intercepted component.
A future is returned which in turn it will fail with an exception wrapping the provided cause
If called for a router component, the whole route (and all the components contained in it) will be skipped.
If called for an intercepting component (i.e. a splitter
), the listener components (i.e. what follows the
splitter
up to an aggregator
) are skipped as well.
CompletableFuture
using the same event
passed to the
around()
method.CompletableFuture<InterceptionEvent> fail(ErrorType errorType)
interceptors
in the chain and
the intercepted component.
A future is returned which in turn it will fail with an exception that maps the provided error type.
If called for a router component, the whole route (and all the components contained in it) will be skipped.
If called for an intercepting component (i.e. a splitter
), the listener components (i.e. what follows the
splitter
up to an aggregator
) are skipped as well.
CompletableFuture
using the same event
passed to the
around()
method.Copyright © 2018. All rights reserved.