|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventFactory
Factory to create events that are emitted when such an event occur.
Exchange is being created and then later when its done.
| Method Summary | |
|---|---|
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)
Creates an EventObject when an Exchange has failed
but was handled by the Camel error handlers such as an dead letter channel. |
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 |
| Method Detail |
|---|
EventObject createCamelContextStartingEvent(CamelContext context)
EventObject for Camel is starting.
context - camel context
EventObject createCamelContextStartedEvent(CamelContext context)
EventObject for Camel has been started successfully.
context - camel context
EventObject createCamelContextStartupFailureEvent(CamelContext context,
Throwable cause)
EventObject for Camel failing to start
context - camel contextcause - the cause exception
EventObject createCamelContextStopFailureEvent(CamelContext context,
Throwable cause)
EventObject for Camel failing to stop cleanly
context - camel contextcause - the cause exception
EventObject createCamelContextStoppingEvent(CamelContext context)
EventObject for Camel is stopping.
context - camel context
EventObject createCamelContextStoppedEvent(CamelContext context)
EventObject for Camel has been stopped successfully.
context - camel context
EventObject createServiceStartupFailureEvent(CamelContext context,
Object service,
Throwable cause)
EventObject for a Service failed to start cleanly
context - camel contextservice - the servicecause - the cause exception
EventObject createServiceStopFailureEvent(CamelContext context,
Object service,
Throwable cause)
EventObject for a Service failed to stop cleanly
context - camel contextservice - the servicecause - the cause exception
EventObject createRouteStartedEvent(Route route)
EventObject for Route has been started successfully.
route - the route
EventObject createRouteStoppedEvent(Route route)
EventObject for Route has been stopped successfully.
route - the route
EventObject createRouteAddedEvent(Route route)
EventObject for Route has been added successfully.
route - the route
EventObject createRouteRemovedEvent(Route route)
EventObject for Route has been removed successfully.
route - the route
EventObject createExchangeCreatedEvent(Exchange exchange)
EventObject when an Exchange has been created
exchange - the exchange
EventObject createExchangeCompletedEvent(Exchange exchange)
EventObject when an Exchange has been completed successfully
exchange - the exchange
EventObject createExchangeFailedEvent(Exchange exchange)
EventObject when an Exchange has failed
exchange - the exchange
EventObject createExchangeFailureHandledEvent(Exchange exchange,
Processor failureHandler,
boolean deadLetterChannel)
EventObject when an Exchange has failed
but was handled by the Camel error handlers such as an dead letter channel.
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 failure
EventObject createExchangeRedeliveryEvent(Exchange exchange,
int attempt)
EventObject when an Exchange is about to be redelivered
exchange - 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 destination
EventObject 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 taken
EventObject createCamelContextSuspendingEvent(CamelContext context)
EventObject for Camel is suspending.
context - camel context
EventObject createCamelContextSuspendedEvent(CamelContext context)
EventObject for Camel has been suspended successfully.
context - camel context
EventObject createCamelContextResumingEvent(CamelContext context)
EventObject for Camel is resuming.
context - camel context
EventObject createCamelContextResumedEvent(CamelContext context)
EventObject for Camel has been resumed successfully.
context - camel context
EventObject createCamelContextResumeFailureEvent(CamelContext context,
Throwable cause)
EventObject for Camel failing to resume
context - camel contextcause - the cause exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||