|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.storage.dht.spi.util.ExecutorTools
public class ExecutorTools
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 |
---|
public static java.util.concurrent.ExecutorService getDefaultExecutorService()
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |