public interface EventFactory
Modifier and Type | Method and Description |
---|---|
CamelEvent |
createCamelContextInitializedEvent(CamelContext context)
Creates an
CamelEvent for Camel has been initialized successfully. |
CamelEvent |
createCamelContextInitializingEvent(CamelContext context)
Creates an
CamelEvent for Camel is initializing. |
CamelEvent |
createCamelContextResumedEvent(CamelContext context)
Creates an
CamelEvent for Camel has been resumed successfully. |
CamelEvent |
createCamelContextResumeFailureEvent(CamelContext context,
Throwable cause)
Creates an
CamelEvent for Camel failing to resume |
CamelEvent |
createCamelContextResumingEvent(CamelContext context)
Creates an
CamelEvent for Camel is resuming. |
CamelEvent |
createCamelContextRoutesStartedEvent(CamelContext context)
Creates an
CamelEvent for Camel routes started. |
CamelEvent |
createCamelContextRoutesStartingEvent(CamelContext context)
Creates an
CamelEvent for Camel routes starting. |
CamelEvent |
createCamelContextRoutesStoppedEvent(CamelContext context)
Creates an
CamelEvent for Camel routes stopped. |
CamelEvent |
createCamelContextRoutesStoppingEvent(CamelContext context)
Creates an
CamelEvent for Camel routes stopping. |
CamelEvent |
createCamelContextStartedEvent(CamelContext context)
Creates an
CamelEvent for Camel has been started successfully. |
CamelEvent |
createCamelContextStartingEvent(CamelContext context)
Creates an
CamelEvent for Camel is starting. |
CamelEvent |
createCamelContextStartupFailureEvent(CamelContext context,
Throwable cause)
Creates an
CamelEvent for Camel failing to start |
CamelEvent |
createCamelContextStopFailureEvent(CamelContext context,
Throwable cause)
Creates an
CamelEvent for Camel failing to stop cleanly |
CamelEvent |
createCamelContextStoppedEvent(CamelContext context)
Creates an
CamelEvent for Camel has been stopped successfully. |
CamelEvent |
createCamelContextStoppingEvent(CamelContext context)
Creates an
CamelEvent for Camel is stopping. |
CamelEvent |
createCamelContextSuspendedEvent(CamelContext context)
Creates an
CamelEvent for Camel has been suspended successfully. |
CamelEvent |
createCamelContextSuspendingEvent(CamelContext context)
Creates an
CamelEvent for Camel is suspending. |
CamelEvent |
createExchangeCompletedEvent(Exchange exchange)
Creates an
CamelEvent when an Exchange has been completed successfully |
CamelEvent |
createExchangeCreatedEvent(Exchange exchange)
Creates an
CamelEvent when an Exchange has been created |
CamelEvent |
createExchangeFailedEvent(Exchange exchange)
Creates an
CamelEvent when an Exchange has failed |
CamelEvent |
createExchangeFailureHandledEvent(Exchange exchange,
Processor failureHandler,
boolean deadLetterChannel,
String deadLetterUri)
Creates an
CamelEvent when an Exchange has failed but was handled by the Camel
error handlers such as an dead letter channel, or a doTry .. |
CamelEvent |
createExchangeFailureHandlingEvent(Exchange exchange,
Processor failureHandler,
boolean deadLetterChannel,
String deadLetterUri)
Creates an
CamelEvent when an Exchange has failed but is being handled by the
Camel error handlers such as an dead letter channel, or a doTry .. |
CamelEvent |
createExchangeRedeliveryEvent(Exchange exchange,
int attempt)
Creates an
CamelEvent when an Exchange is about to be redelivered |
CamelEvent |
createExchangeSendingEvent(Exchange exchange,
Endpoint endpoint)
Creates an
CamelEvent when an Exchange is about to be sent to the endpoint (eg
before). |
CamelEvent |
createExchangeSentEvent(Exchange exchange,
Endpoint endpoint,
long timeTaken)
Creates an
CamelEvent when an Exchange has completely been sent to the endpoint
(eg after). |
CamelEvent |
createRouteAddedEvent(Route route)
Creates an
CamelEvent for Route has been added successfully. |
CamelEvent |
createRouteReloaded(Route route,
int index,
int total)
Creates an
CamelEvent for Route has been reloaded successfully. |
CamelEvent |
createRouteRemovedEvent(Route route)
Creates an
CamelEvent for Route has been removed successfully. |
CamelEvent |
createRouteStartedEvent(Route route)
Creates an
CamelEvent for Route has been started successfully. |
CamelEvent |
createRouteStartingEvent(Route route)
Creates an
CamelEvent for Route is starting. |
CamelEvent |
createRouteStoppedEvent(Route route)
Creates an
CamelEvent for Route has been stopped successfully. |
CamelEvent |
createRouteStoppingEvent(Route route)
Creates an
CamelEvent for Route is stopping. |
CamelEvent |
createServiceStartupFailureEvent(CamelContext context,
Object service,
Throwable cause)
Creates an
CamelEvent for a Service failed to start cleanly |
CamelEvent |
createServiceStopFailureEvent(CamelContext context,
Object service,
Throwable cause)
Creates an
CamelEvent for a Service failed to stop cleanly |
CamelEvent |
createStepCompletedEvent(Exchange exchange,
String stepId)
Creates an
CamelEvent when a step has been completed successfully |
CamelEvent |
createStepFailedEvent(Exchange exchange,
String stepId)
Creates an
CamelEvent when a step has failed |
CamelEvent |
createStepStartedEvent(Exchange exchange,
String stepId)
Creates an
CamelEvent when a step has been started |
CamelEvent createCamelContextInitializingEvent(CamelContext context)
CamelEvent
for Camel is initializing.context
- camel contextCamelEvent createCamelContextInitializedEvent(CamelContext context)
CamelEvent
for Camel has been initialized successfully.context
- camel contextCamelEvent createCamelContextStartingEvent(CamelContext context)
CamelEvent
for Camel is starting.context
- camel contextCamelEvent createCamelContextStartedEvent(CamelContext context)
CamelEvent
for Camel has been started successfully.context
- camel contextCamelEvent createCamelContextStartupFailureEvent(CamelContext context, Throwable cause)
CamelEvent
for Camel failing to startcontext
- camel contextcause
- the cause exceptionCamelEvent createCamelContextStopFailureEvent(CamelContext context, Throwable cause)
CamelEvent
for Camel failing to stop cleanlycontext
- camel contextcause
- the cause exceptionCamelEvent createCamelContextStoppingEvent(CamelContext context)
CamelEvent
for Camel is stopping.context
- camel contextCamelEvent createCamelContextStoppedEvent(CamelContext context)
CamelEvent
for Camel has been stopped successfully.context
- camel contextCamelEvent createCamelContextRoutesStartingEvent(CamelContext context)
CamelEvent
for Camel routes starting.context
- camel contextCamelEvent createCamelContextRoutesStartedEvent(CamelContext context)
CamelEvent
for Camel routes started.context
- camel contextCamelEvent createCamelContextRoutesStoppingEvent(CamelContext context)
CamelEvent
for Camel routes stopping.context
- camel contextCamelEvent createCamelContextRoutesStoppedEvent(CamelContext context)
CamelEvent
for Camel routes stopped.context
- camel contextCamelEvent createServiceStartupFailureEvent(CamelContext context, Object service, Throwable cause)
CamelEvent
for a Service failed to start cleanlycontext
- camel contextservice
- the servicecause
- the cause exceptionCamelEvent createServiceStopFailureEvent(CamelContext context, Object service, Throwable cause)
CamelEvent
for a Service failed to stop cleanlycontext
- camel contextservice
- the servicecause
- the cause exceptionCamelEvent createRouteStartingEvent(Route route)
CamelEvent
for Route
is starting.route
- the routeCamelEvent createRouteStartedEvent(Route route)
CamelEvent
for Route
has been started successfully.route
- the routeCamelEvent createRouteStoppingEvent(Route route)
CamelEvent
for Route
is stopping.route
- the routeCamelEvent createRouteStoppedEvent(Route route)
CamelEvent
for Route
has been stopped successfully.route
- the routeCamelEvent createRouteAddedEvent(Route route)
CamelEvent
for Route
has been added successfully.route
- the routeCamelEvent createRouteRemovedEvent(Route route)
CamelEvent
for Route
has been removed successfully.route
- the routeCamelEvent createRouteReloaded(Route route, int index, int total)
CamelEvent
for Route
has been reloaded successfully.route
- the routeindex
- the route index in this batchtotal
- total number of routes being reloaded in this batchCamelEvent createExchangeCreatedEvent(Exchange exchange)
CamelEvent
when an Exchange
has been createdexchange
- the exchangeCamelEvent createExchangeCompletedEvent(Exchange exchange)
CamelEvent
when an Exchange
has been completed successfullyexchange
- the exchangeCamelEvent createExchangeFailedEvent(Exchange exchange)
CamelEvent
when an Exchange
has failedexchange
- the exchangeCamelEvent createExchangeFailureHandlingEvent(Exchange exchange, Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)
CamelEvent
when an Exchange
has failed but is being handled by the
Camel error handlers such as an dead letter channel, or a doTry .. doCatch block.
This event is triggered before sending the failure handler, where as
createExchangeFailureHandledEvent if the event after.exchange
- the exchangefailureHandler
- the failure handler such as moving the message to a dead letter queuedeadLetterChannel
- whether it was a dead letter channel or not handling the failuredeadLetterUri
- the dead letter uri, if its a dead letter channelCamelEvent createExchangeFailureHandledEvent(Exchange exchange, Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)
CamelEvent
when an Exchange
has failed but was handled by the Camel
error handlers such as an dead letter channel, or a doTry .. doCatch block.
This event is triggered after the exchange was sent to failure handler, where as
createExchangeFailureHandlingEvent if the event before.exchange
- the exchangefailureHandler
- the failure handler such as moving the message to a dead letter queuedeadLetterChannel
- whether it was a dead letter channel or not handling the failuredeadLetterUri
- the dead letter uri, if its a dead letter channelCamelEvent createExchangeRedeliveryEvent(Exchange exchange, int attempt)
CamelEvent
when an Exchange
is about to be redeliveredexchange
- the exchangeattempt
- the current redelivery attempt (starts from 1)CamelEvent createExchangeSendingEvent(Exchange exchange, Endpoint endpoint)
CamelEvent
when an Exchange
is about to be sent to the endpoint (eg
before).exchange
- the exchangeendpoint
- the destinationCamelEvent createExchangeSentEvent(Exchange exchange, Endpoint endpoint, long timeTaken)
CamelEvent
when an Exchange
has completely been sent to the endpoint
(eg after).exchange
- the exchangeendpoint
- the destinationtimeTaken
- time in millis takenCamelEvent createStepStartedEvent(Exchange exchange, String stepId)
CamelEvent
when a step has been startedexchange
- the exchangestepId
- the step idCamelEvent createStepCompletedEvent(Exchange exchange, String stepId)
CamelEvent
when a step has been completed successfullyexchange
- the exchangestepId
- the step idCamelEvent createStepFailedEvent(Exchange exchange, String stepId)
CamelEvent
when a step has failedexchange
- the exchangestepId
- the step idCamelEvent createCamelContextSuspendingEvent(CamelContext context)
CamelEvent
for Camel is suspending.context
- camel contextCamelEvent createCamelContextSuspendedEvent(CamelContext context)
CamelEvent
for Camel has been suspended successfully.context
- camel contextCamelEvent createCamelContextResumingEvent(CamelContext context)
CamelEvent
for Camel is resuming.context
- camel contextCamelEvent createCamelContextResumedEvent(CamelContext context)
CamelEvent
for Camel has been resumed successfully.context
- camel contextCamelEvent createCamelContextResumeFailureEvent(CamelContext context, Throwable cause)
CamelEvent
for Camel failing to resumecontext
- camel contextcause
- the cause exceptionApache Camel