Package org.apache.camel.spi
Interface EventNotifier
-
public interface EventNotifier
Notifier to sendevents
.- See Also:
EventFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isDisabled()
Checks whether notification is disabled for all eventsboolean
isEnabled(CamelEvent event)
Checks whether notification for the given event is enabled.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
notify(CamelEvent event)
Notifies the given eventvoid
setIgnoreCamelContextEvents(boolean ignoreCamelContextEvents)
void
setIgnoreCamelContextInitEvents(boolean ignoreCamelContextInitEvents)
void
setIgnoreExchangeCompletedEvent(boolean ignoreExchangeCompletedEvent)
void
setIgnoreExchangeCreatedEvent(boolean ignoreExchangeCreatedEvent)
void
setIgnoreExchangeEvents(boolean ignoreExchangeEvents)
void
setIgnoreExchangeFailedEvents(boolean ignoreExchangeFailureEvents)
void
setIgnoreExchangeRedeliveryEvents(boolean ignoreExchangeRedeliveryEvents)
void
setIgnoreExchangeSendingEvents(boolean ignoreExchangeSendingEvents)
void
setIgnoreExchangeSentEvents(boolean ignoreExchangeSentEvents)
void
setIgnoreRouteEvents(boolean ignoreRouteEvents)
void
setIgnoreServiceEvents(boolean ignoreServiceEvents)
void
setIgnoreStepEvents(boolean ignoreStepEvents)
-
-
-
Method Detail
-
notify
void notify(CamelEvent event) throws Exception
Notifies the given event- Parameters:
event
- the event- Throws:
Exception
- can be thrown if notification failed
-
isEnabled
boolean isEnabled(CamelEvent event)
Checks whether notification for the given event is enabled. If disabled the event will not be sent and silently ignored instead.- Parameters:
event
- the event- Returns:
- true if the event should be sent, false to silently ignore it
-
isDisabled
boolean isDisabled()
Checks whether notification is disabled for all events- Returns:
- true if disabled and no events is being notified.
-
isIgnoreCamelContextInitEvents
boolean isIgnoreCamelContextInitEvents()
-
setIgnoreCamelContextInitEvents
void setIgnoreCamelContextInitEvents(boolean ignoreCamelContextInitEvents)
-
isIgnoreCamelContextEvents
boolean isIgnoreCamelContextEvents()
-
setIgnoreCamelContextEvents
void setIgnoreCamelContextEvents(boolean ignoreCamelContextEvents)
-
isIgnoreRouteEvents
boolean isIgnoreRouteEvents()
-
setIgnoreRouteEvents
void setIgnoreRouteEvents(boolean ignoreRouteEvents)
-
isIgnoreServiceEvents
boolean isIgnoreServiceEvents()
-
setIgnoreServiceEvents
void setIgnoreServiceEvents(boolean ignoreServiceEvents)
-
isIgnoreExchangeEvents
boolean isIgnoreExchangeEvents()
-
setIgnoreExchangeEvents
void setIgnoreExchangeEvents(boolean ignoreExchangeEvents)
-
isIgnoreExchangeCreatedEvent
boolean isIgnoreExchangeCreatedEvent()
-
setIgnoreExchangeCreatedEvent
void setIgnoreExchangeCreatedEvent(boolean ignoreExchangeCreatedEvent)
-
isIgnoreExchangeCompletedEvent
boolean isIgnoreExchangeCompletedEvent()
-
setIgnoreExchangeCompletedEvent
void setIgnoreExchangeCompletedEvent(boolean ignoreExchangeCompletedEvent)
-
isIgnoreExchangeFailedEvents
boolean isIgnoreExchangeFailedEvents()
-
setIgnoreExchangeFailedEvents
void setIgnoreExchangeFailedEvents(boolean ignoreExchangeFailureEvents)
-
isIgnoreExchangeRedeliveryEvents
boolean isIgnoreExchangeRedeliveryEvents()
-
setIgnoreExchangeRedeliveryEvents
void setIgnoreExchangeRedeliveryEvents(boolean ignoreExchangeRedeliveryEvents)
-
isIgnoreExchangeSentEvents
boolean isIgnoreExchangeSentEvents()
-
setIgnoreExchangeSentEvents
void setIgnoreExchangeSentEvents(boolean ignoreExchangeSentEvents)
-
isIgnoreExchangeSendingEvents
boolean isIgnoreExchangeSendingEvents()
-
setIgnoreExchangeSendingEvents
void setIgnoreExchangeSendingEvents(boolean ignoreExchangeSendingEvents)
-
isIgnoreStepEvents
boolean isIgnoreStepEvents()
-
setIgnoreStepEvents
void setIgnoreStepEvents(boolean ignoreStepEvents)
-
-