com.sun.sgs.nio.channels
Interface ThreadPoolFactory


public interface ThreadPoolFactory

An object that creates thread pools on demand.

A thread pool factory is primarily intended for cases where an object creates thread pools on demand, and another object or entity requires control over the configuration and thread priority, group, etc.

An implementation will typically use the factory methods defined by the Executors class to create the thread pool.

[[Note: JSR-203 creates this interface in java.util.concurrent]]


Method Summary
 ExecutorService newThreadPool()
          Constructs a new ExecutorService.
 

Method Detail

newThreadPool

ExecutorService newThreadPool()
Constructs a new ExecutorService.

Returns:
the newly-created thread pool

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved