Minor renames and movearounds.

This commit is contained in:
Olof Larsson 2015-12-09 11:21:21 +01:00
parent b66c35b000
commit a524d2ebbc
3 changed files with 4 additions and 5 deletions

View File

@ -192,7 +192,7 @@ public class Coll<E extends Entity<E>> extends CollAbstract<E>
@Override public boolean isLowercasing() { return this.lowercasing; }
@Override public void setLowercasing(boolean lowercasing) { this.lowercasing = lowercasing; }
protected int localPollInfrequency = MStore.DEFAULT_LOCAL_POLL_INFREQUENCY;
protected int localPollInfrequency = MStore.LOCAL_POLL_INFREQUENCY_DEFAULT;
@Override public int getLocalPollInfrequency() { return this.localPollInfrequency; }
@Override public void setLocalPollInfrequency(int infrequence) { this.localPollInfrequency = infrequence; }

View File

@ -9,16 +9,15 @@ import java.util.UUID;
import com.massivecraft.massivecore.ConfServer;
import com.massivecraft.massivecore.xlib.gson.JsonElement;
// This class also serves the purpose of containing
// database related constants.
public class MStore
{
// -------------------------------------------- //
// CONSTANTS
// -------------------------------------------- //
// This class also serves the purpose of containing database related constants.
public static final boolean DEBUG_ENABLED = false;
public static final int DEFAULT_LOCAL_POLL_INFREQUENCY = 10;
public static final int LOCAL_POLL_INFREQUENCY_DEFAULT = 10;
// -------------------------------------------- //
// DRIVER REGISTRY

View File

@ -27,7 +27,7 @@ public class ModificationPollerLocal extends ModificationPollerAbstract
{
// The user specifies how often a default coll should be polled.
// Some colls might be polled more or less frequently.
return MassiveCoreMConf.get().millisBetweenLocalPoll / MStore.DEFAULT_LOCAL_POLL_INFREQUENCY;
return MassiveCoreMConf.get().millisBetweenLocalPoll / MStore.LOCAL_POLL_INFREQUENCY_DEFAULT;
}
@Override