| Package | Description |
|---|---|
| io.dropwizard.metrics |
| Modifier and Type | Method and Description |
|---|---|
static InstrumentedExecutorService |
InstrumentedExecutors.newCachedThreadPool(MetricRegistry registry)
Creates an instrumented thread pool that creates new threads as needed, but
will reuse previously constructed threads when they are
available.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newCachedThreadPool(MetricRegistry registry,
String name)
Creates an instrumented thread pool that creates new threads as needed, but
will reuse previously constructed threads when they are
available.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newCachedThreadPool(ThreadFactory threadFactory,
MetricRegistry registry)
Creates an instrumented thread pool that creates new threads as needed, but
will reuse previously constructed threads when they are
available, and uses the provided
ThreadFactory to create new threads when needed.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newCachedThreadPool(ThreadFactory threadFactory,
MetricRegistry registry,
String name)
Creates an instrumented thread pool that creates new threads as needed, but
will reuse previously constructed threads when they are
available, and uses the provided
ThreadFactory to create new threads when needed.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newFixedThreadPool(int nThreads,
MetricRegistry registry)
Creates an instrumented thread pool that reuses a fixed number of threads
operating off a shared unbounded queue.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newFixedThreadPool(int nThreads,
MetricRegistry registry,
String name)
Creates an instrumented thread pool that reuses a fixed number of threads
operating off a shared unbounded queue.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newFixedThreadPool(int nThreads,
ThreadFactory threadFactory,
MetricRegistry registry)
Creates a thread pool that reuses a fixed number of threads
operating off a shared unbounded queue, using the provided
ThreadFactory to create new threads when needed.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newFixedThreadPool(int nThreads,
ThreadFactory threadFactory,
MetricRegistry registry,
String name)
Creates an instrumented thread pool that reuses a fixed number of threads
operating off a shared unbounded queue, using the provided
ThreadFactory to create new threads when needed.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newSingleThreadExecutor(MetricRegistry registry)
Creates an Executor that uses a single worker thread operating
off an unbounded queue.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newSingleThreadExecutor(MetricRegistry registry,
String name)
Creates an InstrumentedExecutor that uses a single worker thread operating
off an unbounded queue.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newSingleThreadExecutor(ThreadFactory threadFactory,
MetricRegistry registry)
Creates an InstrumentedExecutor that uses a single worker thread operating
off an unbounded queue, and uses the provided ThreadFactory to
create a new thread when needed.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newSingleThreadExecutor(ThreadFactory threadFactory,
MetricRegistry registry,
String name)
Creates an InstrumentedExecutor that uses a single worker thread operating
off an unbounded queue, and uses the provided ThreadFactory to
create a new thread when needed.
|
Copyright © 2021. All rights reserved.