Package org.apache.camel.impl.event
Class DefaultEventFactory
- java.lang.Object
-
- org.apache.camel.impl.event.DefaultEventFactory
-
- All Implemented Interfaces:
org.apache.camel.spi.EventFactory
public class DefaultEventFactory extends Object implements org.apache.camel.spi.EventFactory
Default implementation of theEventFactory
.
-
-
Constructor Summary
Constructors Constructor Description DefaultEventFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.spi.CamelEvent
createCamelContextInitializedEvent(org.apache.camel.CamelContext context)
org.apache.camel.spi.CamelEvent
createCamelContextInitializingEvent(org.apache.camel.CamelContext context)
org.apache.camel.spi.CamelEvent
createCamelContextReloaded(org.apache.camel.CamelContext context, Object source)
org.apache.camel.spi.CamelEvent
createCamelContextReloadFailure(org.apache.camel.CamelContext context, Object source, Throwable cause)
org.apache.camel.spi.CamelEvent
createCamelContextReloading(org.apache.camel.CamelContext context, Object source)
org.apache.camel.spi.CamelEvent
createCamelContextResumedEvent(org.apache.camel.CamelContext context)
org.apache.camel.spi.CamelEvent
createCamelContextResumeFailureEvent(org.apache.camel.CamelContext context, Throwable cause)
org.apache.camel.spi.CamelEvent
createCamelContextResumingEvent(org.apache.camel.CamelContext context)
org.apache.camel.spi.CamelEvent
createCamelContextRoutesStartedEvent(org.apache.camel.CamelContext context)
org.apache.camel.spi.CamelEvent
createCamelContextRoutesStartingEvent(org.apache.camel.CamelContext context)
org.apache.camel.spi.CamelEvent
createCamelContextRoutesStoppedEvent(org.apache.camel.CamelContext context)
org.apache.camel.spi.CamelEvent
createCamelContextRoutesStoppingEvent(org.apache.camel.CamelContext context)
org.apache.camel.spi.CamelEvent
createCamelContextStartedEvent(org.apache.camel.CamelContext context)
org.apache.camel.spi.CamelEvent
createCamelContextStartingEvent(org.apache.camel.CamelContext context)
org.apache.camel.spi.CamelEvent
createCamelContextStartupFailureEvent(org.apache.camel.CamelContext context, Throwable cause)
org.apache.camel.spi.CamelEvent
createCamelContextStopFailureEvent(org.apache.camel.CamelContext context, Throwable cause)
org.apache.camel.spi.CamelEvent
createCamelContextStoppedEvent(org.apache.camel.CamelContext context)
org.apache.camel.spi.CamelEvent
createCamelContextStoppingEvent(org.apache.camel.CamelContext context)
org.apache.camel.spi.CamelEvent
createCamelContextSuspendedEvent(org.apache.camel.CamelContext context)
org.apache.camel.spi.CamelEvent
createCamelContextSuspendingEvent(org.apache.camel.CamelContext context)
org.apache.camel.spi.CamelEvent
createCamelExchangeAsyncProcessingStartedEvent(org.apache.camel.Exchange exchange)
org.apache.camel.spi.CamelEvent
createExchangeCompletedEvent(org.apache.camel.Exchange exchange)
org.apache.camel.spi.CamelEvent
createExchangeCreatedEvent(org.apache.camel.Exchange exchange)
org.apache.camel.spi.CamelEvent
createExchangeFailedEvent(org.apache.camel.Exchange exchange)
org.apache.camel.spi.CamelEvent
createExchangeFailureHandledEvent(org.apache.camel.Exchange exchange, org.apache.camel.Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)
org.apache.camel.spi.CamelEvent
createExchangeFailureHandlingEvent(org.apache.camel.Exchange exchange, org.apache.camel.Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)
org.apache.camel.spi.CamelEvent
createExchangeRedeliveryEvent(org.apache.camel.Exchange exchange, int attempt)
org.apache.camel.spi.CamelEvent
createExchangeSendingEvent(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
org.apache.camel.spi.CamelEvent
createExchangeSentEvent(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint, long timeTaken)
org.apache.camel.spi.CamelEvent
createRouteAddedEvent(org.apache.camel.Route route)
org.apache.camel.spi.CamelEvent
createRouteReloaded(org.apache.camel.Route route, int index, int total)
org.apache.camel.spi.CamelEvent
createRouteRemovedEvent(org.apache.camel.Route route)
org.apache.camel.spi.CamelEvent
createRouteStartedEvent(org.apache.camel.Route route)
org.apache.camel.spi.CamelEvent
createRouteStartingEvent(org.apache.camel.Route route)
org.apache.camel.spi.CamelEvent
createRouteStoppedEvent(org.apache.camel.Route route)
org.apache.camel.spi.CamelEvent
createRouteStoppingEvent(org.apache.camel.Route route)
org.apache.camel.spi.CamelEvent
createServiceStartupFailureEvent(org.apache.camel.CamelContext context, Object service, Throwable cause)
org.apache.camel.spi.CamelEvent
createServiceStopFailureEvent(org.apache.camel.CamelContext context, Object service, Throwable cause)
org.apache.camel.spi.CamelEvent
createStepCompletedEvent(org.apache.camel.Exchange exchange, String stepId)
org.apache.camel.spi.CamelEvent
createStepFailedEvent(org.apache.camel.Exchange exchange, String stepId)
org.apache.camel.spi.CamelEvent
createStepStartedEvent(org.apache.camel.Exchange exchange, String stepId)
boolean
isTimestampEnabled()
void
setTimestampEnabled(boolean timestampEnabled)
-
-
-
Method Detail
-
isTimestampEnabled
public boolean isTimestampEnabled()
- Specified by:
isTimestampEnabled
in interfaceorg.apache.camel.spi.EventFactory
-
setTimestampEnabled
public void setTimestampEnabled(boolean timestampEnabled)
- Specified by:
setTimestampEnabled
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextInitializingEvent
public org.apache.camel.spi.CamelEvent createCamelContextInitializingEvent(org.apache.camel.CamelContext context)
- Specified by:
createCamelContextInitializingEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextInitializedEvent
public org.apache.camel.spi.CamelEvent createCamelContextInitializedEvent(org.apache.camel.CamelContext context)
- Specified by:
createCamelContextInitializedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextStartingEvent
public org.apache.camel.spi.CamelEvent createCamelContextStartingEvent(org.apache.camel.CamelContext context)
- Specified by:
createCamelContextStartingEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextStartedEvent
public org.apache.camel.spi.CamelEvent createCamelContextStartedEvent(org.apache.camel.CamelContext context)
- Specified by:
createCamelContextStartedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextStoppingEvent
public org.apache.camel.spi.CamelEvent createCamelContextStoppingEvent(org.apache.camel.CamelContext context)
- Specified by:
createCamelContextStoppingEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextStoppedEvent
public org.apache.camel.spi.CamelEvent createCamelContextStoppedEvent(org.apache.camel.CamelContext context)
- Specified by:
createCamelContextStoppedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextRoutesStartingEvent
public org.apache.camel.spi.CamelEvent createCamelContextRoutesStartingEvent(org.apache.camel.CamelContext context)
- Specified by:
createCamelContextRoutesStartingEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextRoutesStartedEvent
public org.apache.camel.spi.CamelEvent createCamelContextRoutesStartedEvent(org.apache.camel.CamelContext context)
- Specified by:
createCamelContextRoutesStartedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextRoutesStoppingEvent
public org.apache.camel.spi.CamelEvent createCamelContextRoutesStoppingEvent(org.apache.camel.CamelContext context)
- Specified by:
createCamelContextRoutesStoppingEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextRoutesStoppedEvent
public org.apache.camel.spi.CamelEvent createCamelContextRoutesStoppedEvent(org.apache.camel.CamelContext context)
- Specified by:
createCamelContextRoutesStoppedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextStartupFailureEvent
public org.apache.camel.spi.CamelEvent createCamelContextStartupFailureEvent(org.apache.camel.CamelContext context, Throwable cause)
- Specified by:
createCamelContextStartupFailureEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextStopFailureEvent
public org.apache.camel.spi.CamelEvent createCamelContextStopFailureEvent(org.apache.camel.CamelContext context, Throwable cause)
- Specified by:
createCamelContextStopFailureEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextReloading
public org.apache.camel.spi.CamelEvent createCamelContextReloading(org.apache.camel.CamelContext context, Object source)
- Specified by:
createCamelContextReloading
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextReloadFailure
public org.apache.camel.spi.CamelEvent createCamelContextReloadFailure(org.apache.camel.CamelContext context, Object source, Throwable cause)
- Specified by:
createCamelContextReloadFailure
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextReloaded
public org.apache.camel.spi.CamelEvent createCamelContextReloaded(org.apache.camel.CamelContext context, Object source)
- Specified by:
createCamelContextReloaded
in interfaceorg.apache.camel.spi.EventFactory
-
createServiceStartupFailureEvent
public org.apache.camel.spi.CamelEvent createServiceStartupFailureEvent(org.apache.camel.CamelContext context, Object service, Throwable cause)
- Specified by:
createServiceStartupFailureEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createServiceStopFailureEvent
public org.apache.camel.spi.CamelEvent createServiceStopFailureEvent(org.apache.camel.CamelContext context, Object service, Throwable cause)
- Specified by:
createServiceStopFailureEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createRouteStartingEvent
public org.apache.camel.spi.CamelEvent createRouteStartingEvent(org.apache.camel.Route route)
- Specified by:
createRouteStartingEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createRouteStartedEvent
public org.apache.camel.spi.CamelEvent createRouteStartedEvent(org.apache.camel.Route route)
- Specified by:
createRouteStartedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createRouteStoppingEvent
public org.apache.camel.spi.CamelEvent createRouteStoppingEvent(org.apache.camel.Route route)
- Specified by:
createRouteStoppingEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createRouteStoppedEvent
public org.apache.camel.spi.CamelEvent createRouteStoppedEvent(org.apache.camel.Route route)
- Specified by:
createRouteStoppedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createRouteAddedEvent
public org.apache.camel.spi.CamelEvent createRouteAddedEvent(org.apache.camel.Route route)
- Specified by:
createRouteAddedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createRouteRemovedEvent
public org.apache.camel.spi.CamelEvent createRouteRemovedEvent(org.apache.camel.Route route)
- Specified by:
createRouteRemovedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createRouteReloaded
public org.apache.camel.spi.CamelEvent createRouteReloaded(org.apache.camel.Route route, int index, int total)
- Specified by:
createRouteReloaded
in interfaceorg.apache.camel.spi.EventFactory
-
createExchangeCreatedEvent
public org.apache.camel.spi.CamelEvent createExchangeCreatedEvent(org.apache.camel.Exchange exchange)
- Specified by:
createExchangeCreatedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createExchangeCompletedEvent
public org.apache.camel.spi.CamelEvent createExchangeCompletedEvent(org.apache.camel.Exchange exchange)
- Specified by:
createExchangeCompletedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createExchangeFailedEvent
public org.apache.camel.spi.CamelEvent createExchangeFailedEvent(org.apache.camel.Exchange exchange)
- Specified by:
createExchangeFailedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createExchangeFailureHandlingEvent
public org.apache.camel.spi.CamelEvent createExchangeFailureHandlingEvent(org.apache.camel.Exchange exchange, org.apache.camel.Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)
- Specified by:
createExchangeFailureHandlingEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createExchangeFailureHandledEvent
public org.apache.camel.spi.CamelEvent createExchangeFailureHandledEvent(org.apache.camel.Exchange exchange, org.apache.camel.Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)
- Specified by:
createExchangeFailureHandledEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createExchangeRedeliveryEvent
public org.apache.camel.spi.CamelEvent createExchangeRedeliveryEvent(org.apache.camel.Exchange exchange, int attempt)
- Specified by:
createExchangeRedeliveryEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createExchangeSendingEvent
public org.apache.camel.spi.CamelEvent createExchangeSendingEvent(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
- Specified by:
createExchangeSendingEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createExchangeSentEvent
public org.apache.camel.spi.CamelEvent createExchangeSentEvent(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint, long timeTaken)
- Specified by:
createExchangeSentEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createStepStartedEvent
public org.apache.camel.spi.CamelEvent createStepStartedEvent(org.apache.camel.Exchange exchange, String stepId)
- Specified by:
createStepStartedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createStepCompletedEvent
public org.apache.camel.spi.CamelEvent createStepCompletedEvent(org.apache.camel.Exchange exchange, String stepId)
- Specified by:
createStepCompletedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createStepFailedEvent
public org.apache.camel.spi.CamelEvent createStepFailedEvent(org.apache.camel.Exchange exchange, String stepId)
- Specified by:
createStepFailedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextSuspendingEvent
public org.apache.camel.spi.CamelEvent createCamelContextSuspendingEvent(org.apache.camel.CamelContext context)
- Specified by:
createCamelContextSuspendingEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextSuspendedEvent
public org.apache.camel.spi.CamelEvent createCamelContextSuspendedEvent(org.apache.camel.CamelContext context)
- Specified by:
createCamelContextSuspendedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextResumingEvent
public org.apache.camel.spi.CamelEvent createCamelContextResumingEvent(org.apache.camel.CamelContext context)
- Specified by:
createCamelContextResumingEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextResumedEvent
public org.apache.camel.spi.CamelEvent createCamelContextResumedEvent(org.apache.camel.CamelContext context)
- Specified by:
createCamelContextResumedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelContextResumeFailureEvent
public org.apache.camel.spi.CamelEvent createCamelContextResumeFailureEvent(org.apache.camel.CamelContext context, Throwable cause)
- Specified by:
createCamelContextResumeFailureEvent
in interfaceorg.apache.camel.spi.EventFactory
-
createCamelExchangeAsyncProcessingStartedEvent
public org.apache.camel.spi.CamelEvent createCamelExchangeAsyncProcessingStartedEvent(org.apache.camel.Exchange exchange)
- Specified by:
createCamelExchangeAsyncProcessingStartedEvent
in interfaceorg.apache.camel.spi.EventFactory
-
-