Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| ModeShape Distribution 3.0.0.Alpha5
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.common.component
Interface ThreadPoolFactory

All Known Implementing Classes:
  ExecutionContext, TextExtractorContext, ThreadPools

    public interface ThreadPoolFactory

Factory interface for creating/obtaining named thread pools.

Method Summary
`Executor` | `getThreadPool(String name)` Obtain a thread pool with the supplied name, or create and return one if no thread pool exists with that name.
`void` | `releaseThreadPool(Executor pool)` Signal that the supplied thread pool is no longer needed.

Method Detail

### getThreadPool

    Executor getThreadPool(String name)

  Obtain a thread pool with the supplied name, or create and return one if no thread pool exists with that name. When finished with the thread pool, it should be `released`.

  Parameters:
    `name` - the name of the thread pool; may not be null
  Returns:
    the thread pool executor; never null

### releaseThreadPool

    void releaseThreadPool(Executor pool)

  Signal that the supplied thread pool is no longer needed.

  Parameters:
    `pool` - the pool that is no longer needed

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| ModeShape Distribution 3.0.0.Alpha5
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.