public class DataCacheGetQueue extends Object
Constructor and Description |
---|
DataCacheGetQueue(Plan plugin)
Class constructor, starts the new Thread for fetching.
|
Modifier and Type | Method and Description |
---|---|
void |
scheduleForGet(UUID uuid,
DBCallableProcessor... processors)
Schedules UserData objects to be get for the given proecssors.
|
void |
stop()
Stops the activities and clears the queue.
|
public DataCacheGetQueue(Plan plugin)
plugin
- current instance of Planpublic void scheduleForGet(UUID uuid, DBCallableProcessor... processors)
uuid
- UUID of the player whose UserData object is fetched.processors
- Processors which process-method will be called after
fetch is complete, with the UserData object.public void stop()
Copyright © 2017. All rights reserved.