|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.support.ServiceSupport org.apache.camel.impl.DefaultInflightRepository
public class DefaultInflightRepository
Default implement which just uses a counter
Field Summary |
---|
Fields inherited from class org.apache.camel.support.ServiceSupport |
---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Constructor Summary | |
---|---|
DefaultInflightRepository()
|
Method Summary | |
---|---|
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 |
protected void |
doStart()
Implementations override this method to support customized start/stop. |
protected void |
doStop()
Implementations override this method to support customized start/stop. |
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. |
int |
size()
Current size of inflight exchanges. |
int |
size(Endpoint endpoint)
Deprecated. |
int |
size(String routeId)
Current size of inflight exchanges which are from the given route. |
Methods inherited from class org.apache.camel.support.ServiceSupport |
---|
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.camel.Service |
---|
start, stop |
Constructor Detail |
---|
public DefaultInflightRepository()
Method Detail |
---|
public void add(Exchange exchange)
InflightRepository
add
in interface InflightRepository
exchange
- the exchangepublic void remove(Exchange exchange)
InflightRepository
remove
in interface InflightRepository
exchange
- the exchangepublic void add(Exchange exchange, String routeId)
InflightRepository
add
in interface InflightRepository
exchange
- the exchangerouteId
- the id of the routepublic void remove(Exchange exchange, String routeId)
InflightRepository
remove
in interface InflightRepository
exchange
- the exchangerouteId
- the id of the routepublic int size()
InflightRepository
size
in interface InflightRepository
@Deprecated public int size(Endpoint endpoint)
InflightRepository
size
in interface InflightRepository
public void removeRoute(String routeId)
InflightRepository
removeRoute
in interface InflightRepository
routeId
- the id of the routepublic int size(String routeId)
InflightRepository
size
in interface InflightRepository
routeId
- the id of the route
protected void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.
doStart
in class ServiceSupport
Exception
ServiceSupport.doStop()
protected void doStop() throws Exception
ServiceSupport
ServiceSupport.doStop()
method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext
is shutting down.
doStop
in class ServiceSupport
Exception
ServiceSupport.doStart()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |