Class ProgressCheckRejectionPolicy

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

    public class ProgressCheckRejectionPolicy
    extends java.lang.Object
    implements java.util.concurrent.RejectedExecutionHandler
    Detects
    Since:
    1/29/13
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.RejectedExecutionHandler fallback  
      private long last_change  
      private long last_completed  
      static java.lang.String NAME  
      private long period
      Not changed count of executed tasks for this period will trigger an exception
    • 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
    • Field Detail

      • period

        private long period
        Not changed count of executed tasks for this period will trigger an exception
      • last_completed

        private long last_completed
      • last_change

        private long last_change
      • fallback

        private java.util.concurrent.RejectedExecutionHandler fallback
    • Constructor Detail

      • ProgressCheckRejectionPolicy

        public ProgressCheckRejectionPolicy​(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