Package org.apache.camel.support
Class SimpleEventNotifierSupport
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.SimpleEventNotifierSupport
-
- 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
- Direct Known Subclasses:
EventNotifierSupport
public abstract class SimpleEventNotifierSupport extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.spi.EventNotifier
Base class to extend for customEventNotifier
implementations. This simple event notifier will not receive notifications aboutExchange
events. If there is need to receive such events then extendEventNotifierSupport
instead.- See Also:
EventNotifierSupport
-
-
Constructor Summary
Constructors Constructor Description SimpleEventNotifierSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doStart()
protected void
doStop()
boolean
isDisabled()
boolean
isEnabled(org.apache.camel.spi.CamelEvent event)
boolean
isIgnoreCamelContextEvents()
boolean
isIgnoreCamelContextInitEvents()
boolean
isIgnoreExchangeCompletedEvent()
boolean
isIgnoreExchangeCreatedEvent()
boolean
isIgnoreExchangeEvents()
boolean
isIgnoreExchangeFailedEvents()
boolean
isIgnoreExchangeRedeliveryEvents()
boolean
isIgnoreExchangeSendingEvents()
boolean
isIgnoreExchangeSentEvents()
boolean
isIgnoreRouteEvents()
boolean
isIgnoreServiceEvents()
boolean
isIgnoreStepEvents()
void
setIgnoreCamelContextEvents(boolean ignoreCamelContextEvents)
void
setIgnoreCamelContextInitEvents(boolean ignoreCamelContextInitEvents)
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)
protected void
setupIgnore(boolean ignore)
-
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
-
setupIgnore
protected void setupIgnore(boolean ignore)
-
isIgnoreCamelContextEvents
public boolean isIgnoreCamelContextEvents()
- Specified by:
isIgnoreCamelContextEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
isEnabled
public boolean isEnabled(org.apache.camel.spi.CamelEvent event)
- Specified by:
isEnabled
in interfaceorg.apache.camel.spi.EventNotifier
-
isDisabled
public boolean isDisabled()
- Specified by:
isDisabled
in interfaceorg.apache.camel.spi.EventNotifier
-
isIgnoreCamelContextInitEvents
public boolean isIgnoreCamelContextInitEvents()
- Specified by:
isIgnoreCamelContextInitEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
setIgnoreCamelContextInitEvents
public void setIgnoreCamelContextInitEvents(boolean ignoreCamelContextInitEvents)
- Specified by:
setIgnoreCamelContextInitEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
setIgnoreCamelContextEvents
public void setIgnoreCamelContextEvents(boolean ignoreCamelContextEvents)
- Specified by:
setIgnoreCamelContextEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
isIgnoreRouteEvents
public boolean isIgnoreRouteEvents()
- Specified by:
isIgnoreRouteEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
setIgnoreRouteEvents
public void setIgnoreRouteEvents(boolean ignoreRouteEvents)
- Specified by:
setIgnoreRouteEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
isIgnoreServiceEvents
public boolean isIgnoreServiceEvents()
- Specified by:
isIgnoreServiceEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
setIgnoreServiceEvents
public void setIgnoreServiceEvents(boolean ignoreServiceEvents)
- Specified by:
setIgnoreServiceEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
isIgnoreExchangeEvents
public boolean isIgnoreExchangeEvents()
- Specified by:
isIgnoreExchangeEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
setIgnoreExchangeEvents
public void setIgnoreExchangeEvents(boolean ignoreExchangeEvents)
- Specified by:
setIgnoreExchangeEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
isIgnoreExchangeCreatedEvent
public boolean isIgnoreExchangeCreatedEvent()
- Specified by:
isIgnoreExchangeCreatedEvent
in interfaceorg.apache.camel.spi.EventNotifier
-
setIgnoreExchangeCreatedEvent
public void setIgnoreExchangeCreatedEvent(boolean ignoreExchangeCreatedEvent)
- Specified by:
setIgnoreExchangeCreatedEvent
in interfaceorg.apache.camel.spi.EventNotifier
-
isIgnoreExchangeCompletedEvent
public boolean isIgnoreExchangeCompletedEvent()
- Specified by:
isIgnoreExchangeCompletedEvent
in interfaceorg.apache.camel.spi.EventNotifier
-
setIgnoreExchangeCompletedEvent
public void setIgnoreExchangeCompletedEvent(boolean ignoreExchangeCompletedEvent)
- Specified by:
setIgnoreExchangeCompletedEvent
in interfaceorg.apache.camel.spi.EventNotifier
-
isIgnoreExchangeFailedEvents
public boolean isIgnoreExchangeFailedEvents()
- Specified by:
isIgnoreExchangeFailedEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
setIgnoreExchangeFailedEvents
public void setIgnoreExchangeFailedEvents(boolean ignoreExchangeFailedEvents)
- Specified by:
setIgnoreExchangeFailedEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
isIgnoreExchangeRedeliveryEvents
public boolean isIgnoreExchangeRedeliveryEvents()
- Specified by:
isIgnoreExchangeRedeliveryEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
setIgnoreExchangeRedeliveryEvents
public void setIgnoreExchangeRedeliveryEvents(boolean ignoreExchangeRedeliveryEvents)
- Specified by:
setIgnoreExchangeRedeliveryEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
isIgnoreExchangeSentEvents
public boolean isIgnoreExchangeSentEvents()
- Specified by:
isIgnoreExchangeSentEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
setIgnoreExchangeSentEvents
public void setIgnoreExchangeSentEvents(boolean ignoreExchangeSentEvents)
- Specified by:
setIgnoreExchangeSentEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
isIgnoreExchangeSendingEvents
public boolean isIgnoreExchangeSendingEvents()
- Specified by:
isIgnoreExchangeSendingEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
setIgnoreExchangeSendingEvents
public void setIgnoreExchangeSendingEvents(boolean ignoreExchangeSendingEvents)
- Specified by:
setIgnoreExchangeSendingEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
isIgnoreStepEvents
public boolean isIgnoreStepEvents()
- Specified by:
isIgnoreStepEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
setIgnoreStepEvents
public void setIgnoreStepEvents(boolean ignoreStepEvents)
- Specified by:
setIgnoreStepEvents
in interfaceorg.apache.camel.spi.EventNotifier
-
doStart
protected void doStart() throws Exception
- Overrides:
doStart
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
-