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

15 lines
422 B
Java
Raw Normal View History

2018-07-06 15:30:00 +02:00
package com.eu.habbo.threading;
import com.eu.habbo.Emulator;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
2019-05-26 20:14:53 +02:00
public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler {
2018-07-06 15:30:00 +02:00
@Override
2019-05-26 20:14:53 +02:00
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
2018-07-06 15:30:00 +02:00
Emulator.getLogging().logErrorLine(r.toString() + " is rejected");
}
}