org.drools.concurrent
Class DefaultExecutorService

java.lang.Object
  extended by org.drools.concurrent.DefaultExecutorService
All Implemented Interfaces:
Externalizable, Serializable, ExecutorService

public class DefaultExecutorService
extends Object
implements ExecutorService

See Also:
Serialized Form

Constructor Summary
DefaultExecutorService()
           
 
Method Summary
 void readExternal(ObjectInput in)
           
 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
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExecutorService

public DefaultExecutorService()
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

setCommandExecutor

public void setCommandExecutor(CommandExecutor executor)
Description copied from interface: ExecutorService
The CommandExecutor is a producer/consumer style class that handles the queue and execution of the async actions

Specified by:
setCommandExecutor in interface ExecutorService

startUp

public void startUp()
Description copied from interface: ExecutorService
Startup this ExecutorService, typically called on first submit for lazy startup.

Specified by:
startUp in interface ExecutorService

shutDown

public void shutDown()
Description copied from interface: ExecutorService
Shutdown this ExecutorService

Specified by:
shutDown in interface ExecutorService

submit

public Future submit(Command command)
Description copied from interface: ExecutorService
Submit a command for execution, adds it ot the commandExecutor's queue

Specified by:
submit in interface ExecutorService
Returns:


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