Added server start/stop events. Added a default "Server" entry to the StringCache

This commit is contained in:
ProfMobius committed 2014-12-10 02:07:20 +01:00
1 parent 573c422001
commit f6f1a79dfb
2 files changed
+6

No files matched your search

@@ -32,6 +32,10 @@ public enum StringCache implements IMessageHandler {
private ConcurrentLinkedQueue<DataStringUpdate> fullsync = new ConcurrentLinkedQueue<DataStringUpdate>();
private ConcurrentLinkedQueue<DataStringUpdate> unsynced = new ConcurrentLinkedQueue<DataStringUpdate>(); // This is the current list of unsynced
private StringCache(){
this.getIndex("Server");
}
public String getString(int index){
synchronized(cache){
String retVal = this.cache.get(index);