org.apache.camel
Interface RuntimeConfiguration

All Known Subinterfaces:
CamelContext, RouteContext
All Known Implementing Classes:
DefaultCamelContext, DefaultRouteContext

public interface RuntimeConfiguration

Various runtime configuration used by CamelContext and RouteContext for cross cutting functions such as tracing, delayer, stream cache and the likes.

Version:
$Revision: 815376 $

Method Summary
 Long getDelayer()
          Gets the delay value
 boolean isAutoStartup()
          Gets whether it should automatic start when Camel starts.
 boolean isHandleFault()
          Returns whether tracing enabled
 boolean isStreamCaching()
          Returns whether stream cache is enabled
 boolean isTracing()
          Returns whether tracing enabled
 void setAutoStartup(Boolean autoStartup)
          Sets whether it should automatic start when Camel starts.
 void setDelayer(long delay)
          Sets a delay value in millis that a message is delayed at every step it takes in the route path, to slow things down to better helps you to see what goes

Is disabled by default

 void setHandleFault(Boolean handleFault)
          Sets whether handle fault is enabled or not (default is disabled).
 void setStreamCaching(Boolean cache)
          Sets whether stream caching is enabled or not (default is disabled).
 void setTracing(Boolean tracing)
          Sets whether tracing is enabled or not (default is disabled).
 

Method Detail

setStreamCaching

void setStreamCaching(Boolean cache)
Sets whether stream caching is enabled or not (default is disabled).

Is disabled by default

Parameters:
cache - whether stream caching is enabled or not

isStreamCaching

boolean isStreamCaching()
Returns whether stream cache is enabled

Returns:
true if stream cache is enabled

setTracing

void setTracing(Boolean tracing)
Sets whether tracing is enabled or not (default is disabled).

Is disabled by default

Parameters:
tracing - whether tracing is enabled or not.

isTracing

boolean isTracing()
Returns whether tracing enabled

Returns:
true if tracing is enabled

setHandleFault

void setHandleFault(Boolean handleFault)
Sets whether handle fault is enabled or not (default is disabled).

Is disabled by default

Parameters:
handleFault - whether handle fault is enabled or not.

isHandleFault

boolean isHandleFault()
Returns whether tracing enabled

Returns:
true if tracing is enabled

setDelayer

void setDelayer(long delay)
Sets a delay value in millis that a message is delayed at every step it takes in the route path, to slow things down to better helps you to see what goes

Is disabled by default

Parameters:
delay - delay in millis

getDelayer

Long getDelayer()
Gets the delay value

Returns:
delay in millis, or null if disabled

setAutoStartup

void setAutoStartup(Boolean autoStartup)
Sets whether it should automatic start when Camel starts.

Currently only routes can be disabled, as CamelContext itself are always started}
Default is true to always startup.

Parameters:
autoStartup - whether to auto startup.

isAutoStartup

boolean isAutoStartup()
Gets whether it should automatic start when Camel starts.

Returns:
true if should auto start


Copyright © 2007-2009 The Apache Software Foundation. All Rights Reserved.