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, setIgnoreServiceEvents
public final void notify(EventObject event) throws Exception
notify
in interface org.apache.camel.spi.EventNotifier
Exception
protected abstract void doNotify(T event) throws Exception
event
- the eventException
public boolean isEnabled(EventObject event)
isEnabled
in interface org.apache.camel.spi.EventNotifier
event
- the eventtrue
if EventObject
is instance of generic T, otherwise false
public final void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public final org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public org.apache.camel.ProducerTemplate getProducerTemplate()
ProducerTemplate
default instance from Camel Context.IllegalStateException
- when there is no ProducerTemplateCopyright © 2016. All rights reserved.