public abstract class LoadBalancerSupport extends org.apache.camel.support.AsyncProcessorSupport implements LoadBalancer, org.apache.camel.Navigate<org.apache.camel.Processor>, org.apache.camel.spi.IdAware
LoadBalancer
implementation.Constructor and Description |
---|
LoadBalancerSupport() |
Modifier and Type | Method and Description |
---|---|
void |
addProcessor(org.apache.camel.AsyncProcessor processor)
Adds a new processor to the load balancer
|
protected org.apache.camel.AsyncProcessor[] |
doGetProcessors() |
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
String |
getId() |
List<org.apache.camel.AsyncProcessor> |
getProcessors()
Returns the current processors available to this load balancer
|
boolean |
hasNext() |
List<org.apache.camel.Processor> |
next() |
void |
removeProcessor(org.apache.camel.AsyncProcessor processor)
Removes the given processor from the load balancer
|
void |
setId(String id) |
String |
toString() |
doInit, doResume, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public void addProcessor(org.apache.camel.AsyncProcessor processor)
LoadBalancer
addProcessor
in interface LoadBalancer
processor
- the processor to be added to the load balancerpublic void removeProcessor(org.apache.camel.AsyncProcessor processor)
LoadBalancer
removeProcessor
in interface LoadBalancer
processor
- the processor to be removed from the load balancerpublic List<org.apache.camel.AsyncProcessor> getProcessors()
LoadBalancer
getProcessors
in interface LoadBalancer
protected org.apache.camel.AsyncProcessor[] doGetProcessors()
public List<org.apache.camel.Processor> next()
next
in interface org.apache.camel.Navigate<org.apache.camel.Processor>
public boolean hasNext()
hasNext
in interface org.apache.camel.Navigate<org.apache.camel.Processor>
public String getId()
getId
in interface org.apache.camel.spi.HasId
public void setId(String id)
setId
in interface org.apache.camel.spi.IdAware
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.AsyncProcessorSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.AsyncProcessorSupport
Exception
protected void doShutdown() throws Exception
doShutdown
in class org.apache.camel.support.service.ServiceSupport
Exception
Apache Camel