public interface EventFactory
events
that are emitted when such an event occur.
For example when an Exchange
is being created and then later when its done.Modifier and Type | Method and Description |
---|---|
EventObject |
createCamelContextResumedEvent(CamelContext context)
Creates an
EventObject for Camel has been resumed successfully. |
EventObject |
createCamelContextResumeFailureEvent(CamelContext context,
Throwable cause)
Creates an
EventObject for Camel failing to resume |
EventObject |
createCamelContextResumingEvent(CamelContext context)
Creates an
EventObject for Camel is resuming. |
EventObject |
createCamelContextStartedEvent(CamelContext context)
Creates an
EventObject for Camel has been started successfully. |
EventObject |
createCamelContextStartingEvent(CamelContext context)
Creates an
EventObject for Camel is starting. |
EventObject |
createCamelContextStartupFailureEvent(CamelContext context,
Throwable cause)
Creates an
EventObject for Camel failing to start |
EventObject |
createCamelContextStopFailureEvent(CamelContext context,
Throwable cause)
Creates an
EventObject for Camel failing to stop cleanly |
EventObject |
createCamelContextStoppedEvent(CamelContext context)
Creates an
EventObject for Camel has been stopped successfully. |
EventObject |
createCamelContextStoppingEvent(CamelContext context)
Creates an
EventObject for Camel is stopping. |
EventObject |
createCamelContextSuspendedEvent(CamelContext context)
Creates an
EventObject for Camel has been suspended successfully. |
EventObject |
createCamelContextSuspendingEvent(CamelContext context)
Creates an
EventObject for Camel is suspending. |
EventObject |
createExchangeCompletedEvent(Exchange exchange)
Creates an
EventObject when an Exchange has been completed successfully |
EventObject |
createExchangeCreatedEvent(Exchange exchange)
Creates an
EventObject when an Exchange has been created |
EventObject |
createExchangeFailedEvent(Exchange exchange)
Creates an
EventObject when an Exchange has failed |
EventObject |
createExchangeFailureHandledEvent(Exchange exchange,
Processor failureHandler,
boolean deadLetterChannel,
String deadLetterUri)
Creates an
EventObject when an Exchange has failed
but was handled by the Camel error handlers such as an dead letter channel, or a doTry .. |
EventObject |
createExchangeFailureHandlingEvent(Exchange exchange,
Processor failureHandler,
boolean deadLetterChannel,
String deadLetterUri)
Creates an
EventObject when an Exchange has failed
but is being handled by the Camel error handlers such as an dead letter channel, or a doTry .. |
EventObject |
createExchangeRedeliveryEvent(Exchange exchange,
int attempt)
Creates an
EventObject when an Exchange is about to be redelivered |
EventObject |
createExchangeSendingEvent(Exchange exchange,
Endpoint endpoint)
Creates an
EventObject when an Exchange is about to be sent to the endpoint (eg before). |
EventObject |
createExchangeSentEvent(Exchange exchange,
Endpoint endpoint,
long timeTaken)
Creates an
EventObject when an Exchange has completely been sent to the endpoint (eg after). |
EventObject |
createRouteAddedEvent(Route route)
Creates an
EventObject for Route has been added successfully. |
EventObject |
createRouteRemovedEvent(Route route)
Creates an
EventObject for Route has been removed successfully. |
EventObject |
createRouteStartedEvent(Route route)
Creates an
EventObject for Route has been started successfully. |
EventObject |
createRouteStoppedEvent(Route route)
Creates an
EventObject for Route has been stopped successfully. |
EventObject |
createServiceStartupFailureEvent(CamelContext context,
Object service,
Throwable cause)
Creates an
EventObject for a Service failed to start cleanly |
EventObject |
createServiceStopFailureEvent(CamelContext context,
Object service,
Throwable cause)
Creates an
EventObject for a Service failed to stop cleanly |
EventObject createCamelContextStartingEvent(CamelContext context)
EventObject
for Camel is starting.context
- camel contextEventObject createCamelContextStartedEvent(CamelContext context)
EventObject
for Camel has been started successfully.context
- camel contextEventObject createCamelContextStartupFailureEvent(CamelContext context, Throwable cause)
EventObject
for Camel failing to startcontext
- camel contextcause
- the cause exceptionEventObject createCamelContextStopFailureEvent(CamelContext context, Throwable cause)
EventObject
for Camel failing to stop cleanlycontext
- camel contextcause
- the cause exceptionEventObject createCamelContextStoppingEvent(CamelContext context)
EventObject
for Camel is stopping.context
- camel contextEventObject createCamelContextStoppedEvent(CamelContext context)
EventObject
for Camel has been stopped successfully.context
- camel contextEventObject createServiceStartupFailureEvent(CamelContext context, Object service, Throwable cause)
EventObject
for a Service failed to start cleanlycontext
- camel contextservice
- the servicecause
- the cause exceptionEventObject createServiceStopFailureEvent(CamelContext context, Object service, Throwable cause)
EventObject
for a Service failed to stop cleanlycontext
- camel contextservice
- the servicecause
- the cause exceptionEventObject createRouteStartedEvent(Route route)
EventObject
for Route
has been started successfully.route
- the routeEventObject createRouteStoppedEvent(Route route)
EventObject
for Route
has been stopped successfully.route
- the routeEventObject createRouteAddedEvent(Route route)
EventObject
for Route
has been added successfully.route
- the routeEventObject createRouteRemovedEvent(Route route)
EventObject
for Route
has been removed successfully.route
- the routeEventObject createExchangeCreatedEvent(Exchange exchange)
EventObject
when an Exchange
has been createdexchange
- the exchangeEventObject createExchangeCompletedEvent(Exchange exchange)
EventObject
when an Exchange
has been completed successfullyexchange
- the exchangeEventObject createExchangeFailedEvent(Exchange exchange)
EventObject
when an Exchange
has failedexchange
- the exchangeEventObject createExchangeFailureHandlingEvent(Exchange exchange, Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)
EventObject
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 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 channelEventObject createExchangeFailureHandledEvent(Exchange exchange, Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)
EventObject
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 channelEventObject createExchangeRedeliveryEvent(Exchange exchange, int attempt)
EventObject
when an Exchange
is about to be redeliveredexchange
- the exchangeattempt
- the current redelivery attempt (starts from 1)EventObject createExchangeSendingEvent(Exchange exchange, Endpoint endpoint)
EventObject
when an Exchange
is about to be sent to the endpoint (eg before).exchange
- the exchangeendpoint
- the destinationEventObject createExchangeSentEvent(Exchange exchange, Endpoint endpoint, long timeTaken)
EventObject
when an Exchange
has completely been sent to the endpoint (eg after).exchange
- the exchangeendpoint
- the destinationtimeTaken
- time in millis takenEventObject createCamelContextSuspendingEvent(CamelContext context)
EventObject
for Camel is suspending.context
- camel contextEventObject createCamelContextSuspendedEvent(CamelContext context)
EventObject
for Camel has been suspended successfully.context
- camel contextEventObject createCamelContextResumingEvent(CamelContext context)
EventObject
for Camel is resuming.context
- camel contextEventObject createCamelContextResumedEvent(CamelContext context)
EventObject
for Camel has been resumed successfully.context
- camel contextEventObject createCamelContextResumeFailureEvent(CamelContext context, Throwable cause)
EventObject
for Camel failing to resumecontext
- camel contextcause
- the cause exceptionApache Camel