public abstract class EventNotifierBase<T extends EventObject>
extends org.apache.camel.support.EventNotifierSupport
implements org.apache.camel.CamelContextAware
Camel event notifiers.
Implements only one direct inherited child, no more inheritance levels.| Constructor and Description |
|---|
EventNotifierBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doNotify(T event)
Calls notification implementation.
|
org.apache.camel.CamelContext |
getCamelContext() |
org.apache.camel.ProducerTemplate |
getProducerTemplate()
Gets
ProducerTemplate default instance from Camel Context. |
boolean |
isEnabled(EventObject event) |
void |
notify(EventObject event) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
doStart, doStop, isIgnoreCamelContextEvents, isIgnoreExchangeCompletedEvent, isIgnoreExchangeCreatedEvent, isIgnoreExchangeEvents, isIgnoreExchangeFailedEvents, isIgnoreExchangeRedeliveryEvents, isIgnoreExchangeSendingEvents, isIgnoreExchangeSentEvents, isIgnoreRouteEvents, isIgnoreServiceEvents, setIgnoreCamelContextEvents, setIgnoreExchangeCompletedEvent, setIgnoreExchangeCreatedEvent, setIgnoreExchangeEvents, setIgnoreExchangeFailedEvents, setIgnoreExchangeRedeliveryEvents, setIgnoreExchangeSendingEvents, setIgnoreExchangeSentEvents, setIgnoreRouteEvents, setIgnoreServiceEventspublic final void notify(EventObject event) throws Exception
notify in interface org.apache.camel.spi.EventNotifierExceptionprotected abstract void doNotify(T event) throws Exception
event - the eventExceptionpublic boolean isEnabled(EventObject event)
isEnabled in interface org.apache.camel.spi.EventNotifierevent - the eventtrue if EventObject is instance of generic T, otherwise falsepublic final void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic final org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic org.apache.camel.ProducerTemplate getProducerTemplate()
ProducerTemplate default instance from Camel Context.IllegalStateException - when there is no ProducerTemplateCopyright © 2016. All rights reserved.