org.elasticsearch.threadpool
Class ThreadPool

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.threadpool.ThreadPool

public class ThreadPool
extends AbstractComponent


Nested Class Summary
static class ThreadPool.Names
           
 
Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
ThreadPool()
           
ThreadPool(Settings settings)
           
 
Method Summary
 boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit unit)
           
 java.util.concurrent.Executor cached()
           
 long estimatedTimeInMillis()
           
 java.util.concurrent.Executor executor(java.lang.String name)
           
 java.util.concurrent.ScheduledFuture<?> schedule(TimeValue delay, java.lang.String name, java.lang.Runnable command)
           
 java.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable command, TimeValue interval)
           
 void shutdown()
           
 void shutdownNow()
           
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPool

public ThreadPool()

ThreadPool

@Inject
public ThreadPool(Settings settings)
Method Detail

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