org.apache.camel.test.spring
Annotation Type ShutdownTimeout


@Documented
@Inherited
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface ShutdownTimeout

Indicates to set the shutdown timeout of all CamelContexts instantiated through the use of Spring Test loaded application contexts. If no annotation is used, the timeout is automatically reduced to 10 seconds by the test framework. If the annotation is present the shutdown timeout is set based on the value of value().


Optional Element Summary
 TimeUnit timeUnit
          The time unit that value() is in.
 int value
          The shutdown timeout to set on the CamelContext(s).
 

value

public abstract int value
The shutdown timeout to set on the CamelContext(s). Defaults to 10 seconds.

Default:
10

timeUnit

public abstract TimeUnit timeUnit
The time unit that value() is in.

Default:
java.util.concurrent.TimeUnit.SECONDS


Apache Camel