@ThreadSafe public final class ThreadsHandler extends Object
Modifier and Type | Method and Description |
---|---|
static SelectableThreadPool |
chunkExecutor()
Gets the executor for the chunk thread pool
|
static SelectableThreadPool |
configure(String uppercaseName) |
static ThreadsHandler |
create()
Creates the concurrent handler for internal use
|
static SelectableThreadPool |
entityExecutor()
Gets the executor for the entity thread pool
|
static SelectableThreadPool |
genExecutor()
Gets the executor for the generator thread pool
|
static SelectableThreadPool |
playerExecutor()
Gets the executor for the player thread pool
|
static void |
shutdownAll()
Stops all the executors and clears all caches of concurrent concurrent
|
static SelectableThreadPool |
worldExecutor()
Gets the executor for the world thread pool
|
public static SelectableThreadPool configure(String uppercaseName)
@InternalUseOnly public static ThreadsHandler create()
@InternalUseOnly public static void shutdownAll()
@InternalUseOnly public static SelectableThreadPool worldExecutor()
@InternalUseOnly public static SelectableThreadPool chunkExecutor()
@InternalUseOnly public static SelectableThreadPool genExecutor()
@InternalUseOnly public static SelectableThreadPool entityExecutor()
@InternalUseOnly public static SelectableThreadPool playerExecutor()
Copyright © 2016. All rights reserved.