Interface CamelEvent
- All Known Subinterfaces:
CamelEvent.CamelContextEvent, CamelEvent.CamelContextInitializedEvent, CamelEvent.CamelContextInitializingEvent, CamelEvent.CamelContextReloadedEvent, CamelEvent.CamelContextReloadFailureEvent, CamelEvent.CamelContextReloadingEvent, CamelEvent.CamelContextResumedEvent, CamelEvent.CamelContextResumeFailureEvent, CamelEvent.CamelContextResumingEvent, CamelEvent.CamelContextRoutesStartedEvent, CamelEvent.CamelContextRoutesStartingEvent, CamelEvent.CamelContextRoutesStoppedEvent, CamelEvent.CamelContextRoutesStoppingEvent, CamelEvent.CamelContextStartedEvent, CamelEvent.CamelContextStartingEvent, CamelEvent.CamelContextStartupFailureEvent, CamelEvent.CamelContextStopFailureEvent, CamelEvent.CamelContextStoppedEvent, CamelEvent.CamelContextStoppingEvent, CamelEvent.CamelContextSuspendedEvent, CamelEvent.CamelContextSuspendingEvent, CamelEvent.ExchangeAsyncProcessingStartedEvent, CamelEvent.ExchangeCompletedEvent, CamelEvent.ExchangeCreatedEvent, CamelEvent.ExchangeEvent, CamelEvent.ExchangeFailedEvent, CamelEvent.ExchangeFailureEvent, CamelEvent.ExchangeFailureHandledEvent, CamelEvent.ExchangeFailureHandlingEvent, CamelEvent.ExchangeRedeliveryEvent, CamelEvent.ExchangeSendingEvent, CamelEvent.ExchangeSentEvent, CamelEvent.FailureEvent, CamelEvent.RouteAddedEvent, CamelEvent.RouteEvent, CamelEvent.RouteReloadedEvent, CamelEvent.RouteRemovedEvent, CamelEvent.RouteRestartingEvent, CamelEvent.RouteRestartingFailureEvent, CamelEvent.RouteStartedEvent, CamelEvent.RouteStartingEvent, CamelEvent.RouteStoppedEvent, CamelEvent.RouteStoppingEvent, CamelEvent.ServiceEvent, CamelEvent.ServiceStartupFailureEvent, CamelEvent.ServiceStopFailureEvent, CamelEvent.StepCompletedEvent, CamelEvent.StepEvent, CamelEvent.StepFailedEvent, CamelEvent.StepStartedEvent
public interface CamelEvent
Base interface for all Camel events used by the
EventNotifier for notifications about
Exchange, Route, CamelContext, and
Service lifecycle changes.- Since:
- 3.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceEvent related toCamelContextlifecycle changes.static interfaceFired when the CamelContext has been initialized.static interfaceFired when the CamelContext is initializing.static interfaceFired when the CamelContext has been reloaded.static interfaceFired when the CamelContext failed to reload.static interfaceFired when the CamelContext is reloading.static interfaceFired when the CamelContext has been resumed.static interfaceFired when the CamelContext failed to resume.static interfaceFired when the CamelContext is resuming.static interfaceFired when routes have been started.static interfaceFired when routes are starting.static interfaceFired when routes have been stopped.static interfaceFired when routes are stopping.static interfaceFired when the CamelContext has been fully started.static interfaceFired when the CamelContext is starting.static interfaceFired when the CamelContext failed to start.static interfaceFired when the CamelContext failed to stop cleanly.static interfaceFired when the CamelContext has been stopped.static interfaceFired when the CamelContext is stopping.static interfaceFired when the CamelContext has been suspended.static interfaceFired when the CamelContext is suspending.static interfaceDeprecated.static interfaceFired when an exchange has been completed successfully.static interfaceFired when a new exchange has been created.static interfaceEvent related toExchangeprocessing.static interfaceFired when an exchange has failed.static interfaceEvent providing details about how a failure was handled during exchange processing.static interfaceFired after a failure has been handled by an error handler.static interfaceFired when a failure is about to be handled by an error handler.static interfaceFired when an exchange is about to be redelivered.static interfaceFired when an exchange is about to be sent to an endpoint.static interfaceFired when an exchange has been sent to an endpoint.static interfaceThis interface is implemented by all events that contain an exception and is used to retrieve the exception in a universal way.static interfaceFired when a route has been added.static interfaceEvent related toRoutelifecycle changes.static interfacestatic interfaceFired when a route has been removed.static interfacestatic interfacestatic interfaceFired when a route has been started.static interfaceFired when a route is starting.static interfaceFired when a route has been stopped.static interfaceFired when a route is stopping.static interfaceEvent related toServicelifecycle changes.static interfaceFired when a service failed to start.static interfaceFired when a service failed to stop.static interfaceFired when a Step EIP has completed processing an exchange.static interfaceEvent related to a Step EIP processing.static interfaceFired when a Step EIP has failed processing an exchange.static interfaceFired when a Step EIP has started processing an exchange.static enum -
Method Summary
Modifier and TypeMethodDescriptionReturns the source of this event (typically the CamelContext, Exchange, Route, or Service).longTimestamp for each event, when the event occurred.getType()Returns the type of this event.voidsetTimestamp(long timestamp)
-
Method Details
-
getType
CamelEvent.Type getType()Returns the type of this event. -
getSource
Object getSource()Returns the source of this event (typically the CamelContext, Exchange, Route, or Service). -
getTimestamp
long getTimestamp()Timestamp for each event, when the event occurred. By default, the timestamp is not included and this method returns 0. -
setTimestamp
void setTimestamp(long timestamp)
-