public class PixelmonStorageAsyncScheduler extends java.lang.Object implements StorageSaveScheduler
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.ScheduledExecutorService |
executor |
protected java.util.Deque<PokemonStorage> |
saveList |
protected java.util.concurrent.atomic.AtomicBoolean |
saving |
Constructor and Description |
---|
PixelmonStorageAsyncScheduler() |
Modifier and Type | Method and Description |
---|---|
void |
flush() |
void |
onServerStopping(net.minecraftforge.fml.event.server.FMLServerStoppingEvent event) |
void |
queueChangedStorages() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
save
protected java.util.concurrent.ScheduledExecutorService executor
protected java.util.Deque<PokemonStorage> saveList
protected java.util.concurrent.atomic.AtomicBoolean saving
public void onServerStopping(net.minecraftforge.fml.event.server.FMLServerStoppingEvent event)
onServerStopping
in interface StorageSaveScheduler
public void queueChangedStorages()
public void flush()