org.apache.servicemix.executors
Interface ExecutorFactory

All Known Implementing Classes:
ExecutorFactoryImpl

public interface ExecutorFactory

Factory to create Executors.

Author:
Guillaume Nodet

Method Summary
 Executor createDaemonExecutor(java.lang.String id)
          Create a new daemon executor for the given Id.
 Executor createExecutor(java.lang.String id)
          Create a new executor for the given Id.
 

Method Detail

createExecutor

Executor createExecutor(java.lang.String id)
Create a new executor for the given Id. The id may be used to provide per executor configuration.

Parameters:
id - the id of the executor to create
Returns:
a configured Executor

createDaemonExecutor

Executor createDaemonExecutor(java.lang.String id)
Create a new daemon executor for the given Id. The excutor should use daemon thread underlying The id may be used to provide per executor configuration.

Parameters:
id - the id of the executor to create
Returns:
a configured Executor


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.