org.apache.camel
Enum ShutdownRoute

java.lang.Object
  extended by java.lang.Enum<ShutdownRoute>
      extended by org.apache.camel.ShutdownRoute
All Implemented Interfaces:
Serializable, Comparable<ShutdownRoute>

public enum ShutdownRoute
extends Enum<ShutdownRoute>

Represents the options available when shutting down routes.

Is used for example to defer shutting down a route until all inflight exchanges have been completed, after which the route can be shutdown safely.

This allows fine grained configuration in accomplishing graceful shutdown where you have for example some internal route which other routes are dependent upon.


Enum Constant Summary
Default
           
Defer
           
 
Method Summary
static ShutdownRoute valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ShutdownRoute[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Default

public static final ShutdownRoute Default

Defer

public static final ShutdownRoute Defer
Method Detail

values

public static ShutdownRoute[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ShutdownRoute c : ShutdownRoute.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ShutdownRoute valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Apache CAMEL