Package org.apache.camel.support
Class EventNotifierSupport
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.SimpleEventNotifierSupport
-
- org.apache.camel.support.EventNotifierSupport
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.EventNotifier
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
public abstract class EventNotifierSupport extends SimpleEventNotifierSupport implements org.apache.camel.CamelContextAware
Base class to extend for customEventNotifier
implementations. This event notifier will also receive notifications aboutExchange
events. If there is no need to receive such events then extendSimpleEventNotifierSupport
instead.- See Also:
SimpleEventNotifierSupport
-
-
Constructor Summary
Constructors Constructor Description EventNotifierSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doStart()
protected void
doStop()
org.apache.camel.CamelContext
getCamelContext()
boolean
isDisabled()
boolean
isEnabled(org.apache.camel.spi.CamelEvent event)
boolean
isIgnoreCamelContextEvents()
boolean
isIgnoreExchangeCompletedEvent()
boolean
isIgnoreExchangeCreatedEvent()
boolean
isIgnoreExchangeEvents()
boolean
isIgnoreExchangeFailedEvents()
boolean
isIgnoreExchangeRedeliveryEvents()
boolean
isIgnoreExchangeSendingEvents()
boolean
isIgnoreExchangeSentEvents()
boolean
isIgnoreRouteEvents()
boolean
isIgnoreServiceEvents()
boolean
isIgnoreStepEvents()
void
setCamelContext(org.apache.camel.CamelContext camelContext)
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)
void
setIgnoreStepEvents(boolean ignoreStepEvents)
-
Methods inherited from class org.apache.camel.support.SimpleEventNotifierSupport
isIgnoreCamelContextInitEvents, isIgnoreExchangeAsyncProcessingStartedEvents, setIgnoreCamelContextInitEvents, setIgnoreExchangeAsyncProcessingStartedEvents, setupIgnore
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
isIgnoreCamelContextEvents
public boolean isIgnoreCamelContextEvents()
- Specified by:
isIgnoreCamelContextEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
isIgnoreCamelContextEvents
in classSimpleEventNotifierSupport
-
isEnabled
public boolean isEnabled(org.apache.camel.spi.CamelEvent event)
- Specified by:
isEnabled
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
isEnabled
in classSimpleEventNotifierSupport
-
isDisabled
public boolean isDisabled()
- Specified by:
isDisabled
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
isDisabled
in classSimpleEventNotifierSupport
-
setIgnoreCamelContextEvents
public void setIgnoreCamelContextEvents(boolean ignoreCamelContextEvents)
- Specified by:
setIgnoreCamelContextEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
setIgnoreCamelContextEvents
in classSimpleEventNotifierSupport
-
isIgnoreRouteEvents
public boolean isIgnoreRouteEvents()
- Specified by:
isIgnoreRouteEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
isIgnoreRouteEvents
in classSimpleEventNotifierSupport
-
setIgnoreRouteEvents
public void setIgnoreRouteEvents(boolean ignoreRouteEvents)
- Specified by:
setIgnoreRouteEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
setIgnoreRouteEvents
in classSimpleEventNotifierSupport
-
isIgnoreServiceEvents
public boolean isIgnoreServiceEvents()
- Specified by:
isIgnoreServiceEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
isIgnoreServiceEvents
in classSimpleEventNotifierSupport
-
setIgnoreServiceEvents
public void setIgnoreServiceEvents(boolean ignoreServiceEvents)
- Specified by:
setIgnoreServiceEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
setIgnoreServiceEvents
in classSimpleEventNotifierSupport
-
isIgnoreExchangeEvents
public boolean isIgnoreExchangeEvents()
- Specified by:
isIgnoreExchangeEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
isIgnoreExchangeEvents
in classSimpleEventNotifierSupport
-
setIgnoreExchangeEvents
public void setIgnoreExchangeEvents(boolean ignoreExchangeEvents)
- Specified by:
setIgnoreExchangeEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
setIgnoreExchangeEvents
in classSimpleEventNotifierSupport
-
isIgnoreExchangeCreatedEvent
public boolean isIgnoreExchangeCreatedEvent()
- Specified by:
isIgnoreExchangeCreatedEvent
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
isIgnoreExchangeCreatedEvent
in classSimpleEventNotifierSupport
-
setIgnoreExchangeCreatedEvent
public void setIgnoreExchangeCreatedEvent(boolean ignoreExchangeCreatedEvent)
- Specified by:
setIgnoreExchangeCreatedEvent
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
setIgnoreExchangeCreatedEvent
in classSimpleEventNotifierSupport
-
isIgnoreExchangeCompletedEvent
public boolean isIgnoreExchangeCompletedEvent()
- Specified by:
isIgnoreExchangeCompletedEvent
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
isIgnoreExchangeCompletedEvent
in classSimpleEventNotifierSupport
-
setIgnoreExchangeCompletedEvent
public void setIgnoreExchangeCompletedEvent(boolean ignoreExchangeCompletedEvent)
- Specified by:
setIgnoreExchangeCompletedEvent
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
setIgnoreExchangeCompletedEvent
in classSimpleEventNotifierSupport
-
isIgnoreExchangeFailedEvents
public boolean isIgnoreExchangeFailedEvents()
- Specified by:
isIgnoreExchangeFailedEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
isIgnoreExchangeFailedEvents
in classSimpleEventNotifierSupport
-
setIgnoreExchangeFailedEvents
public void setIgnoreExchangeFailedEvents(boolean ignoreExchangeFailedEvents)
- Specified by:
setIgnoreExchangeFailedEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
setIgnoreExchangeFailedEvents
in classSimpleEventNotifierSupport
-
isIgnoreExchangeRedeliveryEvents
public boolean isIgnoreExchangeRedeliveryEvents()
- Specified by:
isIgnoreExchangeRedeliveryEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
isIgnoreExchangeRedeliveryEvents
in classSimpleEventNotifierSupport
-
setIgnoreExchangeRedeliveryEvents
public void setIgnoreExchangeRedeliveryEvents(boolean ignoreExchangeRedeliveryEvents)
- Specified by:
setIgnoreExchangeRedeliveryEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
setIgnoreExchangeRedeliveryEvents
in classSimpleEventNotifierSupport
-
isIgnoreExchangeSentEvents
public boolean isIgnoreExchangeSentEvents()
- Specified by:
isIgnoreExchangeSentEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
isIgnoreExchangeSentEvents
in classSimpleEventNotifierSupport
-
setIgnoreExchangeSentEvents
public void setIgnoreExchangeSentEvents(boolean ignoreExchangeSentEvents)
- Specified by:
setIgnoreExchangeSentEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
setIgnoreExchangeSentEvents
in classSimpleEventNotifierSupport
-
isIgnoreExchangeSendingEvents
public boolean isIgnoreExchangeSendingEvents()
- Specified by:
isIgnoreExchangeSendingEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
isIgnoreExchangeSendingEvents
in classSimpleEventNotifierSupport
-
setIgnoreExchangeSendingEvents
public void setIgnoreExchangeSendingEvents(boolean ignoreExchangeSendingEvents)
- Specified by:
setIgnoreExchangeSendingEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
setIgnoreExchangeSendingEvents
in classSimpleEventNotifierSupport
-
isIgnoreStepEvents
public boolean isIgnoreStepEvents()
- Specified by:
isIgnoreStepEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
isIgnoreStepEvents
in classSimpleEventNotifierSupport
-
setIgnoreStepEvents
public void setIgnoreStepEvents(boolean ignoreStepEvents)
- Specified by:
setIgnoreStepEvents
in interfaceorg.apache.camel.spi.EventNotifier
- Overrides:
setIgnoreStepEvents
in classSimpleEventNotifierSupport
-
doStart
protected void doStart() throws Exception
- Overrides:
doStart
in classSimpleEventNotifierSupport
- Throws:
Exception
-
doStop
protected void doStop() throws Exception
- Overrides:
doStop
in classSimpleEventNotifierSupport
- Throws:
Exception
-
-