mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-02-01 04:42:36 +01:00
26 lines
763 B
Java
26 lines
763 B
Java
package com.eu.habbo.threading;
|
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import java.io.IOException;
|
|
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
|
import java.util.concurrent.ThreadFactory;
|
|
|
|
public class HabboExecutorService extends ScheduledThreadPoolExecutor {
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(HabboExecutorService.class);
|
|
|
|
public HabboExecutorService(int corePoolSize, ThreadFactory threadFactory) {
|
|
super(corePoolSize, threadFactory);
|
|
}
|
|
|
|
@Override
|
|
protected void afterExecute(Runnable r, Throwable t) {
|
|
super.afterExecute(r, t);
|
|
|
|
if (t != null && !(t instanceof IOException)) {
|
|
LOGGER.error("Error in HabboExecutorService", t);
|
|
}
|
|
}
|
|
}
|