Arcturus-Community/src/main/java/com/eu/habbo/threading/RejectedExecutionHandlerImpl.java

17 lines
529 B
Java
Raw Normal View History

2018-07-06 15:30:00 +02:00
package com.eu.habbo.threading;
2020-05-04 22:24:09 +02:00
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
2018-07-06 15:30:00 +02:00
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
2019-05-26 20:14:53 +02:00
public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler {
2020-05-04 22:24:09 +02:00
private static final Logger LOGGER = LoggerFactory.getLogger(RejectedExecutionHandlerImpl.class);
2018-07-06 15:30:00 +02:00
@Override
2019-05-26 20:14:53 +02:00
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
2020-05-04 22:24:09 +02:00
LOGGER.error(r.toString() + " is rejected");
2018-07-06 15:30:00 +02:00
}
}