Provides convenience factory methods to build PGroups from various types of thread pools
Constructor and description |
---|
private PGroupBuilder
() |
Type | Name and description |
---|---|
static PGroup |
createFromPool(Pool pool) Builds a PGroup instance from a Pool instance |
static PGroup |
createFromPool(java.util.concurrent.ForkJoinPool pool) Builds a PGroup instance from a ForkJoinPool instance |
static PGroup |
createFromPool(java.util.concurrent.ThreadPoolExecutor pool) Builds a PGroup instance from a ThreadPoolExecutor instance |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Builds a PGroup instance from a Pool instance
pool
- The pool to wrap by the new groupBuilds a PGroup instance from a ForkJoinPool instance
pool
- The pool to wrap by the new groupBuilds a PGroup instance from a ThreadPoolExecutor instance
pool
- The pool to wrap by the new groupCopyright © 2008–2014 Václav Pech. All Rights Reserved.