Class QueueHandler
java.lang.Object
com.fastasyncworldedit.core.queue.implementation.QueueHandler
Class which handles all the queues
IQueueExtent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFuture<?>
<T> Future<T>
<T> Future<T>
<T extends Future<T>>
voidcreate()
abstract void
endSet
(boolean parallel) getOrCreateWorldCache
(World world) Get or create the WorldChunkCache for a worldgetQueue
(World world, IBatchProcessor processor, IBatchProcessor postProcessor) boolean
void
run()
abstract void
startSet
(boolean parallel) <T extends Future<T>>
Tsubmit
(IQueueChunk<T> chunk) <T> Future<T>
<T> Future<T>
<T> Future<T>
<T> Future<T>
syncWhenFree
(Runnable run) <T> Future<T>
syncWhenFree
(Runnable run, T value) <T> Future<T>
syncWhenFree
(Callable<T> call) <T> Future<T>
syncWhenFree
(Supplier<T> call) boolean
trim
(boolean aggressive) Trims the object, reducing its memory footprint.void
unCache()
-
Constructor Details
-
QueueHandler
public QueueHandler()
-
-
Method Details
-
run
public void run() -
isUnderutilized
public boolean isUnderutilized() -
complete
-
async
-
async
-
async
-
submit
-
sync
-
sync
- Throws:
Exception
-
sync
-
syncWhenFree
-
syncWhenFree
-
syncWhenFree
- Throws:
Exception
-
syncWhenFree
-
submit
-
getOrCreateWorldCache
Get or create the WorldChunkCache for a world -
create
-
unCache
public void unCache() -
startSet
public abstract void startSet(boolean parallel) -
endSet
public abstract void endSet(boolean parallel) -
getQueue
-
getQueue
public IQueueExtent<IQueueChunk> getQueue(World world, IBatchProcessor processor, IBatchProcessor postProcessor) -
trim
public boolean trim(boolean aggressive) Description copied from interface:Trimable
Trims the object, reducing its memory footprint.
-