1 33 34 package com.icesoft.faces.async.render; 35 36 import edu.emory.mathcs.backport.java.util.concurrent.RejectedExecutionHandler; 37 import edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor; 38 import org.apache.commons.logging.Log; 39 import org.apache.commons.logging.LogFactory; 40 41 50 class RejectionHandler implements RejectedExecutionHandler { 51 52 private static Log log = LogFactory.getLog(RejectionHandler.class); 53 54 public void rejectedExecution(Runnable runnable, 55 ThreadPoolExecutor threadPoolExecutor) { 56 57 if (log.isWarnEnabled()) { 60 log.warn("render task was rejected: " + runnable); 61 } 62 } 63 } | Popular Tags |