public abstract class EventNotifierSupport extends ServiceSupport implements EventNotifier
EventNotifier
implementations.Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
EventNotifierSupport() |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
protected void |
doStop()
Implementations override this method to support customized start/stop.
|
boolean |
isDisabled()
Checks whether notification is disabled for all events
|
boolean |
isIgnoreCamelContextEvents() |
boolean |
isIgnoreExchangeCompletedEvent() |
boolean |
isIgnoreExchangeCreatedEvent() |
boolean |
isIgnoreExchangeEvents() |
boolean |
isIgnoreExchangeFailedEvents() |
boolean |
isIgnoreExchangeRedeliveryEvents() |
boolean |
isIgnoreExchangeSendingEvents() |
boolean |
isIgnoreExchangeSentEvents() |
boolean |
isIgnoreRouteEvents() |
boolean |
isIgnoreServiceEvents() |
void |
setIgnoreCamelContextEvents(boolean ignoreCamelContextEvents) |
void |
setIgnoreExchangeCompletedEvent(boolean ignoreExchangeCompletedEvent) |
void |
setIgnoreExchangeCreatedEvent(boolean ignoreExchangeCreatedEvent) |
void |
setIgnoreExchangeEvents(boolean ignoreExchangeEvents) |
void |
setIgnoreExchangeFailedEvents(boolean ignoreExchangeFailedEvents) |
void |
setIgnoreExchangeRedeliveryEvents(boolean ignoreExchangeRedeliveryEvents) |
void |
setIgnoreExchangeSendingEvents(boolean ignoreExchangeSendingEvents) |
void |
setIgnoreExchangeSentEvents(boolean ignoreExchangeSentEvents) |
void |
setIgnoreRouteEvents(boolean ignoreRouteEvents) |
void |
setIgnoreServiceEvents(boolean ignoreServiceEvents) |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEnabled, notify
protected org.slf4j.Logger log
public EventNotifierSupport()
public boolean isIgnoreCamelContextEvents()
isIgnoreCamelContextEvents
in interface EventNotifier
public boolean isDisabled()
EventNotifier
isDisabled
in interface EventNotifier
public void setIgnoreCamelContextEvents(boolean ignoreCamelContextEvents)
setIgnoreCamelContextEvents
in interface EventNotifier
public boolean isIgnoreRouteEvents()
isIgnoreRouteEvents
in interface EventNotifier
public void setIgnoreRouteEvents(boolean ignoreRouteEvents)
setIgnoreRouteEvents
in interface EventNotifier
public boolean isIgnoreServiceEvents()
isIgnoreServiceEvents
in interface EventNotifier
public void setIgnoreServiceEvents(boolean ignoreServiceEvents)
setIgnoreServiceEvents
in interface EventNotifier
public boolean isIgnoreExchangeEvents()
isIgnoreExchangeEvents
in interface EventNotifier
public void setIgnoreExchangeEvents(boolean ignoreExchangeEvents)
setIgnoreExchangeEvents
in interface EventNotifier
public boolean isIgnoreExchangeCreatedEvent()
isIgnoreExchangeCreatedEvent
in interface EventNotifier
public void setIgnoreExchangeCreatedEvent(boolean ignoreExchangeCreatedEvent)
setIgnoreExchangeCreatedEvent
in interface EventNotifier
public boolean isIgnoreExchangeCompletedEvent()
isIgnoreExchangeCompletedEvent
in interface EventNotifier
public void setIgnoreExchangeCompletedEvent(boolean ignoreExchangeCompletedEvent)
setIgnoreExchangeCompletedEvent
in interface EventNotifier
public boolean isIgnoreExchangeFailedEvents()
isIgnoreExchangeFailedEvents
in interface EventNotifier
public void setIgnoreExchangeFailedEvents(boolean ignoreExchangeFailedEvents)
setIgnoreExchangeFailedEvents
in interface EventNotifier
public boolean isIgnoreExchangeRedeliveryEvents()
isIgnoreExchangeRedeliveryEvents
in interface EventNotifier
public void setIgnoreExchangeRedeliveryEvents(boolean ignoreExchangeRedeliveryEvents)
setIgnoreExchangeRedeliveryEvents
in interface EventNotifier
public boolean isIgnoreExchangeSentEvents()
isIgnoreExchangeSentEvents
in interface EventNotifier
public void setIgnoreExchangeSentEvents(boolean ignoreExchangeSentEvents)
setIgnoreExchangeSentEvents
in interface EventNotifier
public boolean isIgnoreExchangeSendingEvents()
isIgnoreExchangeSendingEvents
in interface EventNotifier
public void setIgnoreExchangeSendingEvents(boolean ignoreExchangeSendingEvents)
setIgnoreExchangeSendingEvents
in interface EventNotifier
protected void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.doStart
in class ServiceSupport
Exception
ServiceSupport.doStop()
protected void doStop() throws Exception
ServiceSupport
ServiceSupport.doStop()
method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext
is shutting down.doStop
in class ServiceSupport
Exception
ServiceSupport.doStart()
Apache Camel