org.elasticsearch.common.util.concurrent
Class EsAbortPolicy

java.lang.Object
  extended by org.elasticsearch.common.util.concurrent.EsAbortPolicy
All Implemented Interfaces:
RejectedExecutionHandler, XRejectedExecutionHandler

public class EsAbortPolicy
extends Object
implements XRejectedExecutionHandler


Constructor Summary
EsAbortPolicy()
           
 
Method Summary
 long rejected()
          The number of rejected executions.
 void rejectedExecution(Runnable r, ThreadPoolExecutor executor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EsAbortPolicy

public EsAbortPolicy()
Method Detail

rejectedExecution

public void rejectedExecution(Runnable r,
                              ThreadPoolExecutor executor)
Specified by:
rejectedExecution in interface RejectedExecutionHandler

rejected

public long rejected()
Description copied from interface: XRejectedExecutionHandler
The number of rejected executions.

Specified by:
rejected in interface XRejectedExecutionHandler


Copyright © 2009-2012. All Rights Reserved.