public class ThreadPool extends AbstractComponent
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
ThreadPool.Info |
static class |
ThreadPool.Names |
static class |
ThreadPool.ThreadPoolType |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static org.elasticsearch.threadpool.ThreadPool.ThreadPoolTypeSettingsValidator |
THREAD_POOL_TYPE_SETTINGS_VALIDATOR |
static Map<String,ThreadPool.ThreadPoolType> |
THREAD_POOL_TYPES |
static String |
THREADPOOL_GROUP |
deprecationLogger, logger, settings| コンストラクタと説明 |
|---|
ThreadPool(Settings settings) |
ThreadPool(String name) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
long |
estimatedTimeInMillis() |
org.apache.lucene.util.Counter |
estimatedTimeInMillisCounter() |
Executor |
executor(String name) |
Executor |
generic() |
ThreadPoolInfo |
info() |
ThreadPool.Info |
info(String name) |
ScheduledFuture<?> |
schedule(TimeValue delay,
String name,
Runnable command) |
ScheduledExecutorService |
scheduler() |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable command,
TimeValue interval) |
void |
setNodeSettingsService(NodeSettingsService nodeSettingsService) |
void |
shutdown() |
void |
shutdownNow() |
ThreadPoolStats |
stats() |
static boolean |
terminate(ExecutorService service,
long timeout,
TimeUnit timeUnit)
Returns
true if the given service was terminated successfully. |
static boolean |
terminate(ThreadPool pool,
long timeout,
TimeUnit timeUnit)
Returns
true if the given pool was terminated successfully. |
void |
updateSettings(Settings settings) |
logDeprecatedSetting, logRemovedSetting, nodeNamepublic static Map<String,ThreadPool.ThreadPoolType> THREAD_POOL_TYPES
public static org.elasticsearch.threadpool.ThreadPool.ThreadPoolTypeSettingsValidator THREAD_POOL_TYPE_SETTINGS_VALIDATOR
public ThreadPool(String name)
public ThreadPool(Settings settings)
public void setNodeSettingsService(NodeSettingsService nodeSettingsService)
public long estimatedTimeInMillis()
public org.apache.lucene.util.Counter estimatedTimeInMillisCounter()
public ThreadPoolInfo info()
public ThreadPool.Info info(String name)
public ThreadPoolStats stats()
public Executor generic()
public ScheduledExecutorService scheduler()
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, TimeValue interval)
public ScheduledFuture<?> schedule(TimeValue delay, String name, Runnable command)
public void shutdown()
public void shutdownNow()
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
public void updateSettings(Settings settings)
public static boolean terminate(ExecutorService service, long timeout, TimeUnit timeUnit)
true if the given service was terminated successfully. If the termination timed out,
the service is null this method will return false.public static boolean terminate(ThreadPool pool, long timeout, TimeUnit timeUnit)
true if the given pool was terminated successfully. If the termination timed out,
the service is null this method will return false.Copyright © 2009–2016. All rights reserved.