@EventNotifier public class ResponseReceiveEventNotifier extends EventNotifierBase<org.apache.camel.management.event.ExchangeSentEvent>
ExchangeSentEvent
).
If endpoint URI is successfully filtered and saving is enabled then response is saved to DB.RequestSendingEventNotifier
Constructor and Description |
---|
ResponseReceiveEventNotifier() |
Modifier and Type | Method and Description |
---|---|
protected void |
doNotify(org.apache.camel.management.event.ExchangeSentEvent event)
Calls notification implementation.
|
boolean |
isEnabled(EventObject event) |
void |
onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent applicationReadyEvent)
After all the db properties are set, set pattern for endpointFilter.
|
doStart, getCamelContext, getProducerTemplate, notify, setCamelContext
doStop, isIgnoreCamelContextEvents, isIgnoreExchangeCompletedEvent, isIgnoreExchangeCreatedEvent, isIgnoreExchangeEvents, isIgnoreExchangeFailedEvents, isIgnoreExchangeRedeliveryEvents, isIgnoreExchangeSendingEvents, isIgnoreExchangeSentEvents, isIgnoreRouteEvents, isIgnoreServiceEvents, setIgnoreCamelContextEvents, setIgnoreExchangeCompletedEvent, setIgnoreExchangeCreatedEvent, setIgnoreExchangeEvents, setIgnoreExchangeFailedEvents, setIgnoreExchangeRedeliveryEvents, setIgnoreExchangeSendingEvents, setIgnoreExchangeSentEvents, setIgnoreRouteEvents, setIgnoreServiceEvents
@EventListener public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent applicationReadyEvent)
public boolean isEnabled(EventObject event)
EventNotifierBase
isEnabled
in interface org.apache.camel.spi.EventNotifier
isEnabled
in class EventNotifierBase<org.apache.camel.management.event.ExchangeSentEvent>
event
- the eventtrue
if EventObject
is instance of generic T, otherwise false
protected void doNotify(org.apache.camel.management.event.ExchangeSentEvent event) throws Exception
EventNotifierBase
doNotify
in class EventNotifierBase<org.apache.camel.management.event.ExchangeSentEvent>
event
- the eventException
- if error occurs during notificationCopyright © 2018 Pivotal Software, Inc.. All rights reserved.