org.apache.camel
Interface Ordered

All Known Implementing Classes:
SynchronizationAdapter, SynchronizationAdapter

public interface Ordered

Interface to be implemented by objects that should be orderable, such as with a Collection.

Version:

Field Summary
static int HIGHEST
          The highest precedence
static int LOWEST
          The lowest precedence
 
Method Summary
 int getOrder()
          Gets the order.
 

Field Detail

HIGHEST

static final int HIGHEST
The highest precedence

See Also:
Constant Field Values

LOWEST

static final int LOWEST
The lowest precedence

See Also:
Constant Field Values
Method Detail

getOrder

int getOrder()
Gets the order.

Use low numbers for higher priority. Normally the sorting will start from 0 and move upwards. So if you want to be last then use Integer.MAX_VALUE or eg LOWEST.

Returns:
the order


Apache Camel