All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.shoothzj.javatool.executor.SimpleLogRejectedExecutionHandler Maven / Gradle / Ivy

There is a newer version: 3.1.15
Show newest version
package com.github.shoothzj.javatool.executor;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author hezhangjian
 */
public class SimpleLogRejectedExecutionHandler implements RejectedExecutionHandler {
    private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(SimpleLogRejectedExecutionHandler.class);

    @Override
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
        log.error("rejected runnable is {}, executor is {}", r, executor);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy