Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::ACS::jbaci::BACIDispatcher Class Reference

List of all members.

Public Member Functions

 BACIDispatcher (ThreadFactory threadFactory)
boolean execute (PrioritizedRunnable action)
void shutdown ()

Private Attributes

ThreadPoolExecutor threadPool

Static Private Attributes

final int MAX_REQUESTS = 100
final int POOL_THREADS = 10

Detailed Description

BACI dispatcher (thread pool)
Author:
Matej Sekoranja
Version:
$id$


Constructor & Destructor Documentation

alma::ACS::jbaci::BACIDispatcher::BACIDispatcher ThreadFactory  threadFactory  )  [inline]
 

Constructor.

Parameters:
threadFactory thread factory to be used to create thread, if null no factory is being used


Member Function Documentation

boolean alma::ACS::jbaci::BACIDispatcher::execute PrioritizedRunnable  action  )  [inline]
 

Execute action. If the maximum pool size or queue size is bounded, then it is possible for incoming execute requests to block. BACIDispatcher uses its own blocking policy: creating a new thread, which will call blocking execute.

Parameters:
action action to execute.
Returns:
true on success.

void alma::ACS::jbaci::BACIDispatcher::shutdown  )  [inline]
 

Shutdown dispatcher.


Member Data Documentation

final int alma::ACS::jbaci::BACIDispatcher::MAX_REQUESTS = 100 [static, private]
 

Number of threads in thread pool.

final int alma::ACS::jbaci::BACIDispatcher::POOL_THREADS = 10 [static, private]
 

Number of requests ( in thread pool (guarantees order of execution).

ThreadPoolExecutor alma::ACS::jbaci::BACIDispatcher::threadPool [private]
 

Thread pool.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:27 2009 for ACS Java API by doxygen 1.3.8