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 lombok.extern.slf4j.Slf4j;

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

/**
 * @author hezhangjian
 */
@Slf4j
public class SimpleLogRejectedExecutionHandler implements RejectedExecutionHandler {

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy