public class ServicePoolManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServicePoolManager.AllocationData
Handler for a single task allocation.
|
| Constructor and Description |
|---|
ServicePoolManager(IInternalAccess component,
String name,
IServicePoolHandler handler,
int max)
Create a new service pool manager.
|
| Modifier and Type | Method and Description |
|---|---|
IIntermediateFuture |
performTasks(Set tasks,
boolean retry,
Object user)
Perform the given tasks using available or newly created services.
|
void |
setMax(int max)
Set the maximum number of services.
|
public ServicePoolManager(IInternalAccess component, String name, IServicePoolHandler handler, int max)
name - The services name.handler - The code for service invocation.public IIntermediateFuture performTasks(Set tasks, boolean retry, Object user)
tasks - The set of tasks to be performed.retry - True, when failed tasks should be retried.user - User data that is provided for service selection, creation, invocation (if any).public void setMax(int max)
Copyright © 2012. All Rights Reserved.