Public Member Functions

alma.ACS.jbaci.BACIDispatcher Class Reference

List of all members.

Public Member Functions

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

Detailed Description

BACI dispatcher (thread pool)

Author:
Matej Sekoranja
Version:
$id$

Constructor & Destructor Documentation

alma.ACS.jbaci.BACIDispatcher.BACIDispatcher ( ThreadFactory  threadFactory  ) 

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  ) 

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 (  ) 

Shutdown dispatcher.

Referenced by alma.ACS.jbaci.BACIFramework.shutdown().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties