public interface ExchangeInterceptor
Modifier and Type | Field and Description |
---|---|
static String |
CONSUMER
Intercepts an exchange before a message is passed into the processing pipeline
and after all processing steps have completed.
|
static String |
PROVIDER
Intercepts an exchange immediately before the provider is invoked and again
immediately after the provider returns.
|
Modifier and Type | Method and Description |
---|---|
void |
after(String target,
Exchange exchange)
Invoked immediately after the specified target scope in a message exchange.
|
void |
before(String target,
Exchange exchange)
Invoked immediately before the specified target scope in a message exchange.
|
List<String> |
getTargets()
The list of targets, or interception points, where this interceptor should be invoked.
|
static final String CONSUMER
static final String PROVIDER
void before(String target, Exchange exchange) throws HandlerException
target
- interception pointexchange
- message exchangeHandlerException
- in order to fail a message exchangevoid after(String target, Exchange exchange) throws HandlerException
target
- interception pointexchange
- message exchangeHandlerException
- in order to fail a message exchangeCopyright © 2013–2018 JBoss by Red Hat. All rights reserved.