public final class FilterEndpointSpec extends ConsumerEndpointSpec<FilterEndpointSpec,org.springframework.integration.filter.MessageFilter>
ConsumerEndpointSpec implementation for the MessageFilter.componentToRegisterid, logger, PARSER, target| Modifier and Type | Method and Description |
|---|---|
FilterEndpointSpec |
discardChannel(org.springframework.messaging.MessageChannel discardChannel)
Specify a channel where rejected Messages should be sent.
|
FilterEndpointSpec |
discardChannel(java.lang.String discardChannelName)
Specify a channel name where rejected Messages should be sent.
|
FilterEndpointSpec |
discardFlow(IntegrationFlow discardFlow)
Configure a subflow to run for discarded messages instead of a
discardChannel(MessageChannel). |
FilterEndpointSpec |
discardWithinAdvice(boolean discardWithinAdvice)
Set to 'true' if you wish the discard processing to occur within any
request handler advice applied to this filter.
|
FilterEndpointSpec |
throwExceptionOnRejection(boolean throwExceptionOnRejection)
The default value is
false meaning that rejected
Messages will be quietly dropped or sent to the discard channel if
available. |
advice, autoStartup, order, phase, poller, requiresReply, sendTimeout, transactional, transactional, transactional, transactional, transactionalgetComponentsToRegister, id, poller, poller_this, doGet, get, getId, getObject, getObjectType, isSingletonpublic FilterEndpointSpec throwExceptionOnRejection(boolean throwExceptionOnRejection)
false meaning that rejected
Messages will be quietly dropped or sent to the discard channel if
available. Typically this value would not be true when
a discard channel is provided, but if so, it will still apply
(in such a case, the Message will be sent to the discard channel,
and then the exception will be thrown).throwExceptionOnRejection - the throwExceptionOnRejection.MessageFilter.setThrowExceptionOnRejection(boolean)public FilterEndpointSpec discardChannel(org.springframework.messaging.MessageChannel discardChannel)
discardChannel - the discardChannel.MessageFilter.setDiscardChannel(MessageChannel)public FilterEndpointSpec discardChannel(java.lang.String discardChannelName)
discardChannelName - the discardChannelName.MessageFilter.setDiscardChannelName(String)public FilterEndpointSpec discardFlow(IntegrationFlow discardFlow)
discardChannel(MessageChannel).discardFlow - the discard flow.public FilterEndpointSpec discardWithinAdvice(boolean discardWithinAdvice)
discardWithinAdvice - the discardWithinAdvice.MessageFilter.setDiscardWithinAdvice(boolean)