com.liferay.portal.increment
Class BufferedIncrementDiscardPolicy

java.lang.Object
  extended by com.liferay.portal.increment.BufferedIncrementDiscardPolicy
All Implemented Interfaces:
java.util.concurrent.RejectedExecutionHandler

public class BufferedIncrementDiscardPolicy
extends java.lang.Object
implements java.util.concurrent.RejectedExecutionHandler

View Source

Author:
Shuyang Zhou

Constructor Summary
BufferedIncrementDiscardPolicy()
           
 
Method Summary
 void rejectedExecution(java.lang.Runnable runnable, java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)
           
 void setDiscardNumber(int discardNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedIncrementDiscardPolicy

public BufferedIncrementDiscardPolicy()
Method Detail

rejectedExecution

public void rejectedExecution(java.lang.Runnable runnable,
                              java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)
Specified by:
rejectedExecution in interface java.util.concurrent.RejectedExecutionHandler

setDiscardNumber

public void setDiscardNumber(int discardNumber)