Package org.apache.camel.support
Class EventHelper
- java.lang.Object
-
- org.apache.camel.support.EventHelper
-
public final class EventHelper extends Object
Helper for easily sending event notifications in a single line of code
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleaneventsApplicable(org.apache.camel.CamelContext context)Checks whether event notifications is applicable or notstatic booleannotifyCamelContextInitialized(org.apache.camel.CamelContext context)static booleannotifyCamelContextInitializing(org.apache.camel.CamelContext context)static booleannotifyCamelContextResumed(org.apache.camel.CamelContext context)static booleannotifyCamelContextResumeFailed(org.apache.camel.CamelContext context, Throwable cause)static booleannotifyCamelContextResuming(org.apache.camel.CamelContext context)static booleannotifyCamelContextRoutesStarted(org.apache.camel.CamelContext context)static booleannotifyCamelContextRoutesStarting(org.apache.camel.CamelContext context)static booleannotifyCamelContextRoutesStopped(org.apache.camel.CamelContext context)static booleannotifyCamelContextRoutesStopping(org.apache.camel.CamelContext context)static booleannotifyCamelContextStarted(org.apache.camel.CamelContext context)static booleannotifyCamelContextStarting(org.apache.camel.CamelContext context)static booleannotifyCamelContextStartupFailed(org.apache.camel.CamelContext context, Throwable cause)static booleannotifyCamelContextStopFailed(org.apache.camel.CamelContext context, Throwable cause)static booleannotifyCamelContextStopped(org.apache.camel.CamelContext context)static booleannotifyCamelContextStopping(org.apache.camel.CamelContext context)static booleannotifyCamelContextSuspended(org.apache.camel.CamelContext context)static booleannotifyCamelContextSuspending(org.apache.camel.CamelContext context)static booleannotifyContextReloaded(org.apache.camel.CamelContext context, Object source)static booleannotifyContextReloadFailure(org.apache.camel.CamelContext context, Object source, Throwable cause)static booleannotifyContextReloading(org.apache.camel.CamelContext context, Object source)static booleannotifyExchangeAsyncProcessingStartedEvent(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange)static booleannotifyExchangeCreated(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange)static booleannotifyExchangeDone(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange)static booleannotifyExchangeFailed(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange)static booleannotifyExchangeFailureHandled(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, org.apache.camel.Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)static booleannotifyExchangeFailureHandling(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, org.apache.camel.Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)static booleannotifyExchangeRedelivery(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, int attempt)static booleannotifyExchangeSending(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)static booleannotifyExchangeSent(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint, long timeTaken)static booleannotifyRouteAdded(org.apache.camel.CamelContext context, org.apache.camel.Route route)static booleannotifyRouteReloaded(org.apache.camel.CamelContext context, org.apache.camel.Route route, int index, int total)static booleannotifyRouteRemoved(org.apache.camel.CamelContext context, org.apache.camel.Route route)static booleannotifyRouteStarted(org.apache.camel.CamelContext context, org.apache.camel.Route route)static booleannotifyRouteStarting(org.apache.camel.CamelContext context, org.apache.camel.Route route)static booleannotifyRouteStopped(org.apache.camel.CamelContext context, org.apache.camel.Route route)static booleannotifyRouteStopping(org.apache.camel.CamelContext context, org.apache.camel.Route route)static booleannotifyServiceStartupFailure(org.apache.camel.CamelContext context, Object service, Throwable cause)static booleannotifyServiceStopFailure(org.apache.camel.CamelContext context, Object service, Throwable cause)static booleannotifyStepDone(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, String stepId)static booleannotifyStepFailed(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, String stepId)static booleannotifyStepStarted(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, String stepId)
-
-
-
Method Detail
-
eventsApplicable
public static boolean eventsApplicable(org.apache.camel.CamelContext context)
Checks whether event notifications is applicable or not
-
notifyCamelContextInitializing
public static boolean notifyCamelContextInitializing(org.apache.camel.CamelContext context)
-
notifyCamelContextInitialized
public static boolean notifyCamelContextInitialized(org.apache.camel.CamelContext context)
-
notifyCamelContextStarting
public static boolean notifyCamelContextStarting(org.apache.camel.CamelContext context)
-
notifyCamelContextStarted
public static boolean notifyCamelContextStarted(org.apache.camel.CamelContext context)
-
notifyCamelContextStartupFailed
public static boolean notifyCamelContextStartupFailed(org.apache.camel.CamelContext context, Throwable cause)
-
notifyCamelContextStopping
public static boolean notifyCamelContextStopping(org.apache.camel.CamelContext context)
-
notifyCamelContextStopped
public static boolean notifyCamelContextStopped(org.apache.camel.CamelContext context)
-
notifyCamelContextStopFailed
public static boolean notifyCamelContextStopFailed(org.apache.camel.CamelContext context, Throwable cause)
-
notifyServiceStopFailure
public static boolean notifyServiceStopFailure(org.apache.camel.CamelContext context, Object service, Throwable cause)
-
notifyServiceStartupFailure
public static boolean notifyServiceStartupFailure(org.apache.camel.CamelContext context, Object service, Throwable cause)
-
notifyRouteStarting
public static boolean notifyRouteStarting(org.apache.camel.CamelContext context, org.apache.camel.Route route)
-
notifyRouteStarted
public static boolean notifyRouteStarted(org.apache.camel.CamelContext context, org.apache.camel.Route route)
-
notifyRouteStopping
public static boolean notifyRouteStopping(org.apache.camel.CamelContext context, org.apache.camel.Route route)
-
notifyRouteStopped
public static boolean notifyRouteStopped(org.apache.camel.CamelContext context, org.apache.camel.Route route)
-
notifyRouteAdded
public static boolean notifyRouteAdded(org.apache.camel.CamelContext context, org.apache.camel.Route route)
-
notifyRouteRemoved
public static boolean notifyRouteRemoved(org.apache.camel.CamelContext context, org.apache.camel.Route route)
-
notifyRouteReloaded
public static boolean notifyRouteReloaded(org.apache.camel.CamelContext context, org.apache.camel.Route route, int index, int total)
-
notifyContextReloading
public static boolean notifyContextReloading(org.apache.camel.CamelContext context, Object source)
-
notifyContextReloaded
public static boolean notifyContextReloaded(org.apache.camel.CamelContext context, Object source)
-
notifyContextReloadFailure
public static boolean notifyContextReloadFailure(org.apache.camel.CamelContext context, Object source, Throwable cause)
-
notifyExchangeCreated
public static boolean notifyExchangeCreated(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange)
-
notifyExchangeDone
public static boolean notifyExchangeDone(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange)
-
notifyExchangeFailed
public static boolean notifyExchangeFailed(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange)
-
notifyExchangeFailureHandling
public static boolean notifyExchangeFailureHandling(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, org.apache.camel.Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)
-
notifyExchangeFailureHandled
public static boolean notifyExchangeFailureHandled(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, org.apache.camel.Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)
-
notifyExchangeRedelivery
public static boolean notifyExchangeRedelivery(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, int attempt)
-
notifyExchangeSending
public static boolean notifyExchangeSending(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
-
notifyExchangeSent
public static boolean notifyExchangeSent(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint, long timeTaken)
-
notifyCamelContextSuspending
public static boolean notifyCamelContextSuspending(org.apache.camel.CamelContext context)
-
notifyCamelContextSuspended
public static boolean notifyCamelContextSuspended(org.apache.camel.CamelContext context)
-
notifyCamelContextResuming
public static boolean notifyCamelContextResuming(org.apache.camel.CamelContext context)
-
notifyCamelContextResumed
public static boolean notifyCamelContextResumed(org.apache.camel.CamelContext context)
-
notifyCamelContextResumeFailed
public static boolean notifyCamelContextResumeFailed(org.apache.camel.CamelContext context, Throwable cause)
-
notifyCamelContextRoutesStarting
public static boolean notifyCamelContextRoutesStarting(org.apache.camel.CamelContext context)
-
notifyCamelContextRoutesStarted
public static boolean notifyCamelContextRoutesStarted(org.apache.camel.CamelContext context)
-
notifyCamelContextRoutesStopping
public static boolean notifyCamelContextRoutesStopping(org.apache.camel.CamelContext context)
-
notifyCamelContextRoutesStopped
public static boolean notifyCamelContextRoutesStopped(org.apache.camel.CamelContext context)
-
notifyStepStarted
public static boolean notifyStepStarted(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, String stepId)
-
notifyStepDone
public static boolean notifyStepDone(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, String stepId)
-
notifyStepFailed
public static boolean notifyStepFailed(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange, String stepId)
-
notifyExchangeAsyncProcessingStartedEvent
public static boolean notifyExchangeAsyncProcessingStartedEvent(org.apache.camel.CamelContext context, org.apache.camel.Exchange exchange)
-
-