org.xsocket
Interface IWorkerPool

Package class diagram package IWorkerPool
All Superinterfaces:
java.util.concurrent.Executor
All Known Implementing Classes:
DynamicWorkerPool

Deprecated. replaced by Executor

public interface IWorkerPool
extends java.util.concurrent.Executor


Method Summary
 void execute(java.lang.Runnable command)
          Deprecated.  
 int getActiveCount()
          Deprecated.  
 int getPoolSize()
          Deprecated.  
<T> java.util.List<java.util.concurrent.Future<T>>
invokeAll(java.util.Collection<java.util.concurrent.Callable<T>> tasks)
          Deprecated.  
 

Method Detail

execute

void execute(java.lang.Runnable command)
Deprecated. 
Specified by:
execute in interface java.util.concurrent.Executor
Parameters:
command - the commnd to execute

invokeAll

<T> java.util.List<java.util.concurrent.Future<T>> invokeAll(java.util.Collection<java.util.concurrent.Callable<T>> tasks)
                                                         throws java.lang.InterruptedException
Deprecated. 
Parameters:
tasks - the collection of tasks
Returns:
A list of Futures representing the tasks, in the same sequential order as produced by the iterator for the given task list, each of which has completed.
Throws:
java.lang.InterruptedException - if interrupted while waiting, in which case unfinished tasks are cancelled.

getPoolSize

int getPoolSize()
Deprecated. 
Returns:
the number of the workers

getActiveCount

int getActiveCount()
Deprecated. 
Returns:
the number of workes