Class ThreadPool
java.lang.Object
com.pixelmonmod.pixelmon.api.util.ThreadPool
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadPool
createNewThreadPool
(String name, int size) repeatUntilComplete
(Callable<Boolean> task, long period) repeatUntilComplete
(Callable<Boolean> task, long period, TimeUnit timeUnit) scheduleAtFixedRate
(Runnable runnable, long delay, long period) scheduleAtFixedRate
(Runnable runnable, long delay, long period, TimeUnit timeUnit) void
setSize
(int size)
-
Method Details
-
createNewThreadPool
-
setSize
public void setSize(int size) -
submit
-
schedule
-
schedule
-
scheduleAtFixedRate
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable runnable, long delay, long period, TimeUnit timeUnit) -
repeatUntilComplete
-
repeatUntilComplete
public ScheduledFuture<?> repeatUntilComplete(Callable<Boolean> task, long period, TimeUnit timeUnit)
-