BEAST
eu.baltrad.beast.manager.BltMessageManager Class Reference

The message manager that will distribute the messages to the available adaptors/routes. More...

Inheritance diagram for eu.baltrad.beast.manager.BltMessageManager:
eu.baltrad.beast.manager.IBltMessageManager

Public Member Functions

 BltMessageManager ()
 Default constructor.
 
 BltMessageManager (int poolSize)
 Constructor.
 
void setRouter (IRouter router)
 
void setManager (IBltAdaptorManager manager)
 
synchronized void setExecutor (ExecutorService executor)
 
ExecutorService getExecutor ()
 
synchronized void manage (IBltMessage message)
 
synchronized void afterPropertiesSet () throws Exception
 If the executor service not has been set when arriving here, the default executor service will be set.
 
synchronized void shutdown ()
 Safely terminates the manager and ensures that pending messages are managed properly.
 
void destroy () throws Exception
 

Protected Member Functions

Runnable createRunnable (final IBltMessage message)
 Creates a runnable for use with an executor.
 

Detailed Description

The message manager that will distribute the messages to the available adaptors/routes.

Author
Anders Henja

Constructor & Destructor Documentation

◆ BltMessageManager() [1/2]

eu.baltrad.beast.manager.BltMessageManager.BltMessageManager ( )
inline

Default constructor.

◆ BltMessageManager() [2/2]

eu.baltrad.beast.manager.BltMessageManager.BltMessageManager ( int poolSize)
inline

Constructor.

Parameters
poolSizethe number of threads in the default executor pool

Member Function Documentation

◆ afterPropertiesSet()

synchronized void eu.baltrad.beast.manager.BltMessageManager.afterPropertiesSet ( ) throws Exception
inline

If the executor service not has been set when arriving here, the default executor service will be set.

See also
org.springframework.beans.factory.InitializingBean.afterPropertiesSet()

◆ createRunnable()

Runnable eu.baltrad.beast.manager.BltMessageManager.createRunnable ( final IBltMessage message)
inlineprotected

Creates a runnable for use with an executor.

Parameters
messagea message
Returns
a runnable

◆ destroy()

void eu.baltrad.beast.manager.BltMessageManager.destroy ( ) throws Exception
inline
See also
org.springframework.beans.factory.DisposableBean.destroy()

◆ getExecutor()

ExecutorService eu.baltrad.beast.manager.BltMessageManager.getExecutor ( )
inline
Returns
the executor

◆ manage()

synchronized void eu.baltrad.beast.manager.BltMessageManager.manage ( IBltMessage message)
inline

◆ setExecutor()

synchronized void eu.baltrad.beast.manager.BltMessageManager.setExecutor ( ExecutorService executor)
inline
Parameters
executorthe executor service to set

◆ setManager()

void eu.baltrad.beast.manager.BltMessageManager.setManager ( IBltAdaptorManager manager)
inline
Parameters
managerthe adaptor manager to set

◆ setRouter()

void eu.baltrad.beast.manager.BltMessageManager.setRouter ( IRouter router)
inline
Parameters
routerthe router to set

◆ shutdown()

synchronized void eu.baltrad.beast.manager.BltMessageManager.shutdown ( )
inline

Safely terminates the manager and ensures that pending messages are managed properly.

Implements eu.baltrad.beast.manager.IBltMessageManager.


The documentation for this class was generated from the following file: