com.sun.sgs.impl.nio
Class DefaultThreadPoolFactory

java.lang.Object
  extended by com.sun.sgs.impl.nio.DefaultThreadPoolFactory
All Implemented Interfaces:
ThreadPoolFactory

 class DefaultThreadPoolFactory
extends Object
implements ThreadPoolFactory

Factory for obtaining the default ThreadPoolFactory.


Nested Class Summary
(package private) static class DefaultThreadPoolFactory.LazyInstanceHolder
          A lazily-initialized singleton holder.
 
Constructor Summary
DefaultThreadPoolFactory()
           
 
Method Summary
(package private) static DefaultThreadPoolFactory create()
          Returns the default ThreadPoolFactory.
 ExecutorService newThreadPool()
          Constructs a new ExecutorService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultThreadPoolFactory

DefaultThreadPoolFactory()
Method Detail

create

static DefaultThreadPoolFactory create()
Returns the default ThreadPoolFactory.

Returns:
the default ThreadPoolFactory

newThreadPool

public ExecutorService newThreadPool()
Constructs a new ExecutorService.

Specified by:
newThreadPool in interface ThreadPoolFactory
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