Package jadex.micro.examples.mandelbrot
Interface IServicePoolHandler
-
public interface IServicePoolHandlerHandler for creation, selecting and invoking a service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IFuturecreateService()Create a service.IFutureinvokeService(IService service, java.lang.Object task, java.lang.Object user)Invoke a service.booleanselectService(IService service)Select a service.
-
-
-
Method Detail
-
selectService
boolean selectService(IService service)
Select a service. Allows restricting further, which of the discovered services are invoked.- Parameters:
service- The service.- Returns:
- True, when the service should be selected.
-
createService
IFuture createService()
Create a service. Optional operation only needed, when services should be dynamically created as needed.- Returns:
- The created service as a future result.
-
invokeService
IFuture invokeService(IService service, java.lang.Object task, java.lang.Object user)
Invoke a service.- Parameters:
service- The service.task- The task to execute.user- User data that was provided to the ServicePoolManager.performTasks() method (if any).- Returns:
- The future indicating that the task is finished (or failed).
-
-