public class DefaultEventFactory extends Object implements EventFactory
EventFactory
.Constructor and Description |
---|
DefaultEventFactory() |
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 |
public DefaultEventFactory()
public EventObject createCamelContextStartingEvent(CamelContext context)
EventFactory
EventObject
for Camel is starting.createCamelContextStartingEvent
in interface EventFactory
context
- camel contextpublic EventObject createCamelContextStartedEvent(CamelContext context)
EventFactory
EventObject
for Camel has been started successfully.createCamelContextStartedEvent
in interface EventFactory
context
- camel contextpublic EventObject createCamelContextStoppingEvent(CamelContext context)
EventFactory
EventObject
for Camel is stopping.createCamelContextStoppingEvent
in interface EventFactory
context
- camel contextpublic EventObject createCamelContextStoppedEvent(CamelContext context)
EventFactory
EventObject
for Camel has been stopped successfully.createCamelContextStoppedEvent
in interface EventFactory
context
- camel contextpublic EventObject createCamelContextStartupFailureEvent(CamelContext context, Throwable cause)
EventFactory
EventObject
for Camel failing to startcreateCamelContextStartupFailureEvent
in interface EventFactory
context
- camel contextcause
- the cause exceptionpublic EventObject createCamelContextStopFailureEvent(CamelContext context, Throwable cause)
EventFactory
EventObject
for Camel failing to stop cleanlycreateCamelContextStopFailureEvent
in interface EventFactory
context
- camel contextcause
- the cause exceptionpublic EventObject createServiceStartupFailureEvent(CamelContext context, Object service, Throwable cause)
EventFactory
EventObject
for a Service failed to start cleanlycreateServiceStartupFailureEvent
in interface EventFactory
context
- camel contextservice
- the servicecause
- the cause exceptionpublic EventObject createServiceStopFailureEvent(CamelContext context, Object service, Throwable cause)
EventFactory
EventObject
for a Service failed to stop cleanlycreateServiceStopFailureEvent
in interface EventFactory
context
- camel contextservice
- the servicecause
- the cause exceptionpublic EventObject createRouteStartedEvent(Route route)
EventFactory
EventObject
for Route
has been started successfully.createRouteStartedEvent
in interface EventFactory
route
- the routepublic EventObject createRouteStoppedEvent(Route route)
EventFactory
EventObject
for Route
has been stopped successfully.createRouteStoppedEvent
in interface EventFactory
route
- the routepublic EventObject createRouteAddedEvent(Route route)
EventFactory
EventObject
for Route
has been added successfully.createRouteAddedEvent
in interface EventFactory
route
- the routepublic EventObject createRouteRemovedEvent(Route route)
EventFactory
EventObject
for Route
has been removed successfully.createRouteRemovedEvent
in interface EventFactory
route
- the routepublic EventObject createExchangeCreatedEvent(Exchange exchange)
EventFactory
EventObject
when an Exchange
has been createdcreateExchangeCreatedEvent
in interface EventFactory
exchange
- the exchangepublic EventObject createExchangeCompletedEvent(Exchange exchange)
EventFactory
EventObject
when an Exchange
has been completed successfullycreateExchangeCompletedEvent
in interface EventFactory
exchange
- the exchangepublic EventObject createExchangeFailedEvent(Exchange exchange)
EventFactory
EventObject
when an Exchange
has failedcreateExchangeFailedEvent
in interface EventFactory
exchange
- the exchangepublic EventObject createExchangeFailureHandlingEvent(Exchange exchange, Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)
EventFactory
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 failure handler, where as
createExchangeFailureHandledEvent if the event after.createExchangeFailureHandlingEvent
in interface EventFactory
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 channelpublic EventObject createExchangeFailureHandledEvent(Exchange exchange, Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)
EventFactory
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.createExchangeFailureHandledEvent
in interface EventFactory
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 channelpublic EventObject createExchangeRedeliveryEvent(Exchange exchange, int attempt)
EventFactory
EventObject
when an Exchange
is about to be redeliveredcreateExchangeRedeliveryEvent
in interface EventFactory
exchange
- the exchangeattempt
- the current redelivery attempt (starts from 1)public EventObject createExchangeSendingEvent(Exchange exchange, Endpoint endpoint)
EventFactory
EventObject
when an Exchange
is about to be sent to the endpoint (eg before).createExchangeSendingEvent
in interface EventFactory
exchange
- the exchangeendpoint
- the destinationpublic EventObject createExchangeSentEvent(Exchange exchange, Endpoint endpoint, long timeTaken)
EventFactory
EventObject
when an Exchange
has completely been sent to the endpoint (eg after).createExchangeSentEvent
in interface EventFactory
exchange
- the exchangeendpoint
- the destinationtimeTaken
- time in millis takenpublic EventObject createCamelContextSuspendingEvent(CamelContext context)
EventFactory
EventObject
for Camel is suspending.createCamelContextSuspendingEvent
in interface EventFactory
context
- camel contextpublic EventObject createCamelContextSuspendedEvent(CamelContext context)
EventFactory
EventObject
for Camel has been suspended successfully.createCamelContextSuspendedEvent
in interface EventFactory
context
- camel contextpublic EventObject createCamelContextResumingEvent(CamelContext context)
EventFactory
EventObject
for Camel is resuming.createCamelContextResumingEvent
in interface EventFactory
context
- camel contextpublic EventObject createCamelContextResumedEvent(CamelContext context)
EventFactory
EventObject
for Camel has been resumed successfully.createCamelContextResumedEvent
in interface EventFactory
context
- camel contextpublic EventObject createCamelContextResumeFailureEvent(CamelContext context, Throwable cause)
EventFactory
EventObject
for Camel failing to resumecreateCamelContextResumeFailureEvent
in interface EventFactory
context
- camel contextcause
- the cause exceptionApache Camel