public interface InflightRepository extends StaticService
Exchange
s.Modifier and Type | Interface and Description |
---|---|
static interface |
InflightRepository.InflightExchange
Information about the inflight exchange.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Exchange exchange)
Adds the exchange to the inflight registry to the total counter
|
void |
add(Exchange exchange,
String routeId)
Adds the exchange to the inflight registry associated to the given route
|
void |
addRoute(String routeId)
Adds the route from the in flight registry.
|
Collection<InflightRepository.InflightExchange> |
browse()
A read-only browser of the
InflightRepository.InflightExchange s that are currently inflight. |
Collection<InflightRepository.InflightExchange> |
browse(int limit,
boolean sortByLongestDuration)
A read-only browser of the
InflightRepository.InflightExchange s that are currently inflight. |
Collection<InflightRepository.InflightExchange> |
browse(String fromRouteId)
A read-only browser of the
InflightRepository.InflightExchange s that are currently inflight that started from the
given route. |
Collection<InflightRepository.InflightExchange> |
browse(String fromRouteId,
int limit,
boolean sortByLongestDuration)
A read-only browser of the
InflightRepository.InflightExchange s that are currently inflight that started from the
given route. |
boolean |
isInflightBrowseEnabled()
Whether the inflight repository should allow browsing each inflight exchange.
|
InflightRepository.InflightExchange |
oldest(String fromRouteId)
Gets the oldest
InflightRepository.InflightExchange that are currently inflight that started from the given route. |
void |
remove(Exchange exchange)
Removes the exchange from the inflight registry to the total counter
|
void |
remove(Exchange exchange,
String routeId)
Removes the exchange from the inflight registry removing association to the given route
|
void |
removeRoute(String routeId)
Removes the route from the in flight registry.
|
void |
setInflightBrowseEnabled(boolean inflightBrowseEnabled)
Whether the inflight repository should allow browsing each inflight exchange.
|
int |
size()
Current size of inflight exchanges.
|
int |
size(String routeId)
Current size of inflight exchanges which are from the given route.
|
void add(Exchange exchange)
exchange
- the exchangevoid remove(Exchange exchange)
exchange
- the exchangevoid add(Exchange exchange, String routeId)
exchange
- the exchangerouteId
- the id of the routevoid remove(Exchange exchange, String routeId)
exchange
- the exchangerouteId
- the id of the routeint size()
void addRoute(String routeId)
routeId
- the id of the routevoid removeRoute(String routeId)
routeId
- the id of the routeint size(String routeId)
routeId
- the id of the routeboolean isInflightBrowseEnabled()
void setInflightBrowseEnabled(boolean inflightBrowseEnabled)
inflightBrowseEnabled
- whether browsing is enabledCollection<InflightRepository.InflightExchange> browse()
InflightRepository.InflightExchange
s that are currently inflight.Collection<InflightRepository.InflightExchange> browse(String fromRouteId)
InflightRepository.InflightExchange
s that are currently inflight that started from the
given route.fromRouteId
- the route id, or null for all routes.Collection<InflightRepository.InflightExchange> browse(int limit, boolean sortByLongestDuration)
InflightRepository.InflightExchange
s that are currently inflight.limit
- maximum number of entries to returnsortByLongestDuration
- to sort by the longest duration. Set to true to include the exchanges that
has been inflight the longest time, set to false to sort by exchange idCollection<InflightRepository.InflightExchange> browse(String fromRouteId, int limit, boolean sortByLongestDuration)
InflightRepository.InflightExchange
s that are currently inflight that started from the
given route.fromRouteId
- the route id, or null for all routes.limit
- maximum number of entries to returnsortByLongestDuration
- to sort by the longest duration. Set to true to include the exchanges that
has been inflight the longest time, set to false to sort by exchange idInflightRepository.InflightExchange oldest(String fromRouteId)
InflightRepository.InflightExchange
that are currently inflight that started from the given route.fromRouteId
- the route id, or null for all routes.Apache Camel