mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-25 06:24:27 +00:00
Added server start/stop events. Added a default "Server" entry to the StringCache
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user