Class 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 custom EventNotifier implementations. This simple event notifier will not receive notifications about Exchange events. If there is need to receive such events then extend EventNotifierSupport instead.
    See Also:
    EventNotifierSupport
    • Constructor Detail

      • SimpleEventNotifierSupport

        public SimpleEventNotifierSupport()
    • Method Detail

      • setupIgnore

        protected void setupIgnore​(boolean ignore)
      • isIgnoreCamelContextEvents

        public boolean isIgnoreCamelContextEvents()
        Specified by:
        isIgnoreCamelContextEvents in interface org.apache.camel.spi.EventNotifier
      • isEnabled

        public boolean isEnabled​(org.apache.camel.spi.CamelEvent event)
        Specified by:
        isEnabled in interface org.apache.camel.spi.EventNotifier
      • isDisabled

        public boolean isDisabled()
        Specified by:
        isDisabled in interface org.apache.camel.spi.EventNotifier
      • isIgnoreCamelContextInitEvents

        public boolean isIgnoreCamelContextInitEvents()
        Specified by:
        isIgnoreCamelContextInitEvents in interface org.apache.camel.spi.EventNotifier
      • setIgnoreCamelContextInitEvents

        public void setIgnoreCamelContextInitEvents​(boolean ignoreCamelContextInitEvents)
        Specified by:
        setIgnoreCamelContextInitEvents in interface org.apache.camel.spi.EventNotifier
      • setIgnoreCamelContextEvents

        public void setIgnoreCamelContextEvents​(boolean ignoreCamelContextEvents)
        Specified by:
        setIgnoreCamelContextEvents in interface org.apache.camel.spi.EventNotifier
      • isIgnoreRouteEvents

        public boolean isIgnoreRouteEvents()
        Specified by:
        isIgnoreRouteEvents in interface org.apache.camel.spi.EventNotifier
      • setIgnoreRouteEvents

        public void setIgnoreRouteEvents​(boolean ignoreRouteEvents)
        Specified by:
        setIgnoreRouteEvents in interface org.apache.camel.spi.EventNotifier
      • isIgnoreServiceEvents

        public boolean isIgnoreServiceEvents()
        Specified by:
        isIgnoreServiceEvents in interface org.apache.camel.spi.EventNotifier
      • setIgnoreServiceEvents

        public void setIgnoreServiceEvents​(boolean ignoreServiceEvents)
        Specified by:
        setIgnoreServiceEvents in interface org.apache.camel.spi.EventNotifier
      • isIgnoreExchangeEvents

        public boolean isIgnoreExchangeEvents()
        Specified by:
        isIgnoreExchangeEvents in interface org.apache.camel.spi.EventNotifier
      • setIgnoreExchangeEvents

        public void setIgnoreExchangeEvents​(boolean ignoreExchangeEvents)
        Specified by:
        setIgnoreExchangeEvents in interface org.apache.camel.spi.EventNotifier
      • isIgnoreExchangeCreatedEvent

        public boolean isIgnoreExchangeCreatedEvent()
        Specified by:
        isIgnoreExchangeCreatedEvent in interface org.apache.camel.spi.EventNotifier
      • setIgnoreExchangeCreatedEvent

        public void setIgnoreExchangeCreatedEvent​(boolean ignoreExchangeCreatedEvent)
        Specified by:
        setIgnoreExchangeCreatedEvent in interface org.apache.camel.spi.EventNotifier
      • isIgnoreExchangeCompletedEvent

        public boolean isIgnoreExchangeCompletedEvent()
        Specified by:
        isIgnoreExchangeCompletedEvent in interface org.apache.camel.spi.EventNotifier
      • setIgnoreExchangeCompletedEvent

        public void setIgnoreExchangeCompletedEvent​(boolean ignoreExchangeCompletedEvent)
        Specified by:
        setIgnoreExchangeCompletedEvent in interface org.apache.camel.spi.EventNotifier
      • isIgnoreExchangeFailedEvents

        public boolean isIgnoreExchangeFailedEvents()
        Specified by:
        isIgnoreExchangeFailedEvents in interface org.apache.camel.spi.EventNotifier
      • setIgnoreExchangeFailedEvents

        public void setIgnoreExchangeFailedEvents​(boolean ignoreExchangeFailedEvents)
        Specified by:
        setIgnoreExchangeFailedEvents in interface org.apache.camel.spi.EventNotifier
      • isIgnoreExchangeRedeliveryEvents

        public boolean isIgnoreExchangeRedeliveryEvents()
        Specified by:
        isIgnoreExchangeRedeliveryEvents in interface org.apache.camel.spi.EventNotifier
      • setIgnoreExchangeRedeliveryEvents

        public void setIgnoreExchangeRedeliveryEvents​(boolean ignoreExchangeRedeliveryEvents)
        Specified by:
        setIgnoreExchangeRedeliveryEvents in interface org.apache.camel.spi.EventNotifier
      • isIgnoreExchangeSentEvents

        public boolean isIgnoreExchangeSentEvents()
        Specified by:
        isIgnoreExchangeSentEvents in interface org.apache.camel.spi.EventNotifier
      • setIgnoreExchangeSentEvents

        public void setIgnoreExchangeSentEvents​(boolean ignoreExchangeSentEvents)
        Specified by:
        setIgnoreExchangeSentEvents in interface org.apache.camel.spi.EventNotifier
      • isIgnoreExchangeSendingEvents

        public boolean isIgnoreExchangeSendingEvents()
        Specified by:
        isIgnoreExchangeSendingEvents in interface org.apache.camel.spi.EventNotifier
      • setIgnoreExchangeSendingEvents

        public void setIgnoreExchangeSendingEvents​(boolean ignoreExchangeSendingEvents)
        Specified by:
        setIgnoreExchangeSendingEvents in interface org.apache.camel.spi.EventNotifier
      • isIgnoreStepEvents

        public boolean isIgnoreStepEvents()
        Specified by:
        isIgnoreStepEvents in interface org.apache.camel.spi.EventNotifier
      • setIgnoreStepEvents

        public void setIgnoreStepEvents​(boolean ignoreStepEvents)
        Specified by:
        setIgnoreStepEvents in interface org.apache.camel.spi.EventNotifier
      • doStart

        protected void doStart()
                        throws Exception
        Overrides:
        doStart in class org.apache.camel.support.service.BaseService
        Throws:
        Exception
      • doStop

        protected void doStop()
                       throws Exception
        Overrides:
        doStop in class org.apache.camel.support.service.BaseService
        Throws:
        Exception