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.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.EventNotifier
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
Base class to extend for custom
EventNotifier
implementations.
This event notifier will also receive notifications about Exchange
events. If there is no need to
receive such events then extend SimpleEventNotifierSupport
instead.- See Also:
-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doStart()
protected void
doStop()
boolean
boolean
isEnabled
(org.apache.camel.spi.CamelEvent event) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
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
Methods inherited from interface org.apache.camel.spi.EventNotifier
notify
Methods inherited from interface org.apache.camel.Service
build, close, init, start, stop
Methods inherited from interface org.apache.camel.ShutdownableService
shutdown
Methods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
Methods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
EventNotifierSupport
public EventNotifierSupport()
-
-
Method Details
-
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
- Overrides:
doStart
in classSimpleEventNotifierSupport
- Throws:
Exception
-
doStop
- Overrides:
doStop
in classSimpleEventNotifierSupport
- Throws:
Exception
-