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.spi.HasCamelContext, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public abstract class EventNotifierSupport extends SimpleEventNotifierSupport implements org.apache.camel.CamelContextAware
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:
  • Constructor Details

    • EventNotifierSupport

      public EventNotifierSupport()
  • Method Details

    • getCamelContext

      public org.apache.camel.CamelContext getCamelContext()
      Specified by:
      getCamelContext in interface org.apache.camel.spi.HasCamelContext
    • setCamelContext

      public void setCamelContext(org.apache.camel.CamelContext camelContext)
      Specified by:
      setCamelContext in interface org.apache.camel.CamelContextAware
    • isIgnoreCamelContextEvents

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

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

      public boolean isDisabled()
      Specified by:
      isDisabled in interface org.apache.camel.spi.EventNotifier
      Overrides:
      isDisabled in class SimpleEventNotifierSupport
    • setIgnoreCamelContextEvents

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public void setIgnoreStepEvents(boolean ignoreStepEvents)
      Specified by:
      setIgnoreStepEvents in interface org.apache.camel.spi.EventNotifier
      Overrides:
      setIgnoreStepEvents in class SimpleEventNotifierSupport