public class SequentialMultiplexDistributor extends SimpleMultiplexDistributor
| Modifier and Type | Field and Description | 
|---|---|
| protected java.util.List<IService> | busyservicesThe list of busy services. | 
| protected java.util.List<IService> | freeservicesThe list of free services. | 
| protected java.util.Iterator<java.lang.Object[]> | itargsThe arguments. | 
| protected java.util.List<Future<IService>> | waitingcallsThe waiting for service calls. | 
| Constructor and Description | 
|---|
| SequentialMultiplexDistributor() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addService(IService service)Add a new service. | 
| void | checkPerformCall(IService service)Check perform call. | 
| protected void | freeService(IService service) | 
| protected java.util.Iterator<java.lang.Object[]> | getArgumentIterator()Get the argument iterator. | 
| java.lang.Object[] | getArguments()Get the arguments for a call. | 
| protected IFuture<IService> | getFreeService(IService service)Get the service for a call. | 
| boolean | hasArguments()Test if has arguments. | 
| IIntermediateFuture<java.lang.Object> | init(java.lang.reflect.Method method,
    java.lang.Object[] args,
    IFilter<Tuple2<IService,java.lang.Object[]>> filter,
    IParameterConverter conv)Start the distributor. | 
| void | serviceSearchFinished()Notify that the search has finished. | 
performCallprotected java.util.Iterator<java.lang.Object[]> itargs
protected java.util.List<IService> freeservices
protected java.util.List<IService> busyservices
public IIntermediateFuture<java.lang.Object> init(java.lang.reflect.Method method, java.lang.Object[] args, IFilter<Tuple2<IService,java.lang.Object[]>> filter, IParameterConverter conv)
init in interface IMultiplexDistributorinit in class SimpleMultiplexDistributorpublic void addService(IService service)
addService in interface IMultiplexDistributoraddService in class SimpleMultiplexDistributorservice - The service.public void serviceSearchFinished()
serviceSearchFinished in interface IMultiplexDistributorserviceSearchFinished in class SimpleMultiplexDistributorprotected java.util.Iterator<java.lang.Object[]> getArgumentIterator()
public java.lang.Object[] getArguments()
getArguments in class SimpleMultiplexDistributorpublic boolean hasArguments()
protected IFuture<IService> getFreeService(IService service)
protected void freeService(IService service)
public void checkPerformCall(IService service)
checkPerformCall in class SimpleMultiplexDistributor