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: 798862 $

Method Summary
 Long getDelayer()
          Gets the delay value
 boolean isHandleFault()
          Returns whether tracing enabled
 boolean isStreamCaching()
          Returns whether stream cache is enabled
 boolean isTracing()
          Returns whether tracing enabled
 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


Apache CAMEL