| Modifier and Type | Method and Description |
|---|---|
void |
execute(Runnable pkt)
Executes Runnable - GameServer Client packet.
|
static ThreadPoolManager |
getInstance() |
ThreadPoolExecutor |
getPacketsThreadPool() |
<T extends Runnable> |
schedule(T r,
long delay)
Schedule
|
<T extends Runnable> |
scheduleAtFixedRate(T r,
long initial,
long delay)
Schedule at fixed rate
|
void |
shutdown()
Shutdown all thread pools.
|
public static final ThreadPoolManager getInstance()
public void execute(Runnable pkt)
public ThreadPoolExecutor getPacketsThreadPool()
public <T extends Runnable> ScheduledFuture<T> schedule(T r, long delay)
T - r - delay - public <T extends Runnable> ScheduledFuture<T> scheduleAtFixedRate(T r, long initial, long delay)
T - r - initial - delay - public void shutdown()
Copyright © 2014–2015. All rights reserved.