public class DataCacheProcessQueue extends Object
Constructor and Description |
---|
DataCacheProcessQueue(DataCacheHandler handler)
Class constructor, starts the new Thread for processing.
|
Modifier and Type | Method and Description |
---|---|
void |
addToPool(Collection<HandlingInfo> info)
Used to add multiple HandlingInfo objects to be processed.
|
void |
addToPool(HandlingInfo info)
Used to add HandlingInfo object to be processed.
|
boolean |
containsUUID(UUID uuid)
Check whether or not the queue contains a HandlingInfo object with the
uuid.
|
List<HandlingInfo> |
stop()
Stops all activites and clears the queue.
|
public DataCacheProcessQueue(DataCacheHandler handler)
handler
- current instance of DataCachehandler.public void addToPool(HandlingInfo info)
info
- object that extends HandlingInfo.public void addToPool(Collection<HandlingInfo> info)
info
- Collection of objects that extends HandlingInfo.public boolean containsUUID(UUID uuid)
uuid
- UUID of the player.public List<HandlingInfo> stop()
Copyright © 2017. All rights reserved.