org.elasticsearch.threadpool
Class ThreadPool
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.threadpool.ThreadPool
public class ThreadPool
- extends AbstractComponent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadPool
public ThreadPool()
ThreadPool
@Inject
public ThreadPool(Settings settings)
estimatedTimeInMillis
public long estimatedTimeInMillis()
cached
public java.util.concurrent.Executor cached()
executor
public java.util.concurrent.Executor executor(java.lang.String name)
scheduleWithFixedDelay
public java.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable command,
TimeValue interval)
schedule
public java.util.concurrent.ScheduledFuture<?> schedule(TimeValue delay,
java.lang.String name,
java.lang.Runnable command)
shutdown
public void shutdown()
shutdownNow
public void shutdownNow()
awaitTermination
public boolean awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException