Class CustomRejectionPolicy

  • All Implemented Interfaces:
    java.util.concurrent.RejectedExecutionHandler

    public class CustomRejectionPolicy
    extends java.lang.Object
    implements java.util.concurrent.RejectedExecutionHandler
    // TODO: Document this
    Since:
    1/29/13
    Author:
    Radim Vansa <rvansa@redhat.com>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME  
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomRejectionPolicy​(java.lang.String rejection_policy)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void rejectedExecution​(java.lang.Runnable r, java.util.concurrent.ThreadPoolExecutor executor)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomRejectionPolicy

        public CustomRejectionPolicy​(java.lang.String rejection_policy)
    • Method Detail

      • rejectedExecution

        public void rejectedExecution​(java.lang.Runnable r,
                                      java.util.concurrent.ThreadPoolExecutor executor)
        Specified by:
        rejectedExecution in interface java.util.concurrent.RejectedExecutionHandler