org.drools.concurrent
Interface ExecutorService

All Superinterfaces:
Externalizable, Serializable
All Known Implementing Classes:
DefaultExecutorService

public interface ExecutorService
extends Externalizable

This class instance is configed by the RuleBaseConfiguration and is responsible for thread management of the async services.


Method Summary
 void setCommandExecutor(CommandExecutor executor)
          The CommandExecutor is a producer/consumer style class that handles the queue and execution of the async actions
 void shutDown()
          Shutdown this ExecutorService
 void startUp()
          Startup this ExecutorService, typically called on first submit for lazy startup.
 Future submit(Command command)
          Submit a command for execution, adds it ot the commandExecutor's queue
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Method Detail

setCommandExecutor

void setCommandExecutor(CommandExecutor executor)
The CommandExecutor is a producer/consumer style class that handles the queue and execution of the async actions

Parameters:
executor -

submit

Future submit(Command command)
Submit a command for execution, adds it ot the commandExecutor's queue

Parameters:
command -
Returns:

shutDown

void shutDown()
Shutdown this ExecutorService


startUp

void startUp()
Startup this ExecutorService, typically called on first submit for lazy startup.



Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.