Package org.apache.camel.spi
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.RouteStartedEvent,CamelEvent.RouteStartingEvent,CamelEvent.RouteStoppedEvent,CamelEvent.RouteStoppingEvent,CamelEvent.ServiceEvent,CamelEvent.ServiceStartupFailureEvent,CamelEvent.ServiceStopFailureEvent,CamelEvent.StepCompletedEvent,CamelEvent.StepEvent,CamelEvent.StepFailedEvent,CamelEvent.StepStartedEvent
public interface CamelEvent
This interface is implemented by all events.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfaceSpecial event only in use for camel-tracing / camel-opentelemetry.static interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfaceThis interface is implemented by all events that contain an exception and is used to retrieve the exception in a universal way.static interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionlongTimestamp for each event, when the event occurred.getType()voidsetTimestamp(long timestamp)
-
Method Details
-
getType
CamelEvent.Type getType() -
getSource
Object getSource() -
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)
-