org.elasticsearch.timer
Class TimerService

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.timer.TimerService

public class TimerService
extends AbstractComponent


Nested Class Summary
static class TimerService.ExecutionType
           
 
Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
TimerService(Settings settings, ThreadPool threadPool)
           
TimerService(ThreadPool threadPool)
           
 
Method Summary
 void close()
           
 long estimatedTimeInMillis()
           
 Timeout newTimeout(TimerTask task, long delay, java.util.concurrent.TimeUnit unit, TimerService.ExecutionType executionType)
           
 Timeout newTimeout(TimerTask task, TimeValue delay, TimerService.ExecutionType executionType)
           
 
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

TimerService

public TimerService(ThreadPool threadPool)

TimerService

@Inject
public TimerService(Settings settings,
                           ThreadPool threadPool)
Method Detail

close

public void close()

estimatedTimeInMillis

public long estimatedTimeInMillis()

newTimeout

public Timeout newTimeout(TimerTask task,
                          TimeValue delay,
                          TimerService.ExecutionType executionType)

newTimeout

public Timeout newTimeout(TimerTask task,
                          long delay,
                          java.util.concurrent.TimeUnit unit,
                          TimerService.ExecutionType executionType)