org.eclipse.jgit.storage.dht.spi.util
Class ExecutorTools

java.lang.Object
  extended by org.eclipse.jgit.storage.dht.spi.util.ExecutorTools

public class ExecutorTools
extends java.lang.Object

Optional executor support for implementors to build on top of.


Method Summary
static java.util.concurrent.ExecutorService getDefaultExecutorService()
          Get the default executor service for this JVM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultExecutorService

public static java.util.concurrent.ExecutorService getDefaultExecutorService()
Get the default executor service for this JVM.

The default executor service is created the first time it is requested, and is shared with all future requests. It uses a fixed sized thread pool that is allocated 2 threads per CPU. Each thread is configured to be a daemon thread, permitting the JVM to do a clean shutdown when the application thread stop, even if work is still pending in the service.

Returns:
the default executor service.


Copyright © 2011. All Rights Reserved.