Package com.illumon.iris.controller
Class ControllerHashtableServer
java.lang.Object
com.illumon.iris.controller.ControllerHashtable
com.illumon.iris.controller.ControllerHashtableServer
- All Implemented Interfaces:
com.fishlib.net.api.CommandHandler,ControllerHashtableEventSource,Map<Long,PersistentQueryInfo>
public class ControllerHashtableServer extends ControllerHashtable implements com.fishlib.net.api.CommandHandler
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceControllerHashtableServer.ClientDeathObserverA listener to keep track of client status and take appropriate actions. -
Field Summary
-
Method Summary
Modifier and Type Method Description voidaddEventHandlerAndGetData(ControllerHashtableEventHandler handler)voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)voiddisconnect()Set<Map.Entry<Long,PersistentQueryInfo>>entrySet()PersistentQueryInfoget(long key)PersistentQueryInfoget(Object key)StringgetId()Map<Long,PersistentQueryInfo>getUnderlyingMap()voidhandleClientDeath(com.fishlib.net.api.ClientEntry client)voidhandleCommand(com.fishlib.net.api.ClientEntry client, com.fishlib.base.Command cmd)booleanisEmpty()Set<Long>keySet()PersistentQueryInfoput(Long key, PersistentQueryInfo value)voidputAll(Map<? extends Long,? extends PersistentQueryInfo> t)PersistentQueryInforemove(long key)PersistentQueryInforemove(Object key)intsize()voidsubscribeToAll()Collection<PersistentQueryInfo>values()Methods inherited from class com.illumon.iris.controller.ControllerHashtable
addCommandHandler, addEventHandler, removeCommandHandler, removeEventHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
getId
-
handleCommand
public void handleCommand(com.fishlib.net.api.ClientEntry client, com.fishlib.base.Command cmd)- Specified by:
handleCommandin interfacecom.fishlib.net.api.CommandHandler
-
addEventHandlerAndGetData
- Specified by:
addEventHandlerAndGetDatain interfaceControllerHashtableEventSource
-
handleClientDeath
public void handleClientDeath(com.fishlib.net.api.ClientEntry client)- Specified by:
handleClientDeathin interfacecom.fishlib.net.api.CommandHandler
-
disconnect
- Specified by:
disconnectin classControllerHashtable- Throws:
IOException
-
subscribeToAll
- Specified by:
subscribeToAllin classControllerHashtable- Throws:
IOException
-
put
- Specified by:
putin interfaceMap<Long,PersistentQueryInfo>
-
remove
- Specified by:
removein interfaceMap<Long,PersistentQueryInfo>
-
remove
-
size
public int size()- Specified by:
sizein interfaceMap<Long,PersistentQueryInfo>
-
clear
public void clear()- Specified by:
clearin interfaceMap<Long,PersistentQueryInfo>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMap<Long,PersistentQueryInfo>
-
containsKey
- Specified by:
containsKeyin interfaceMap<Long,PersistentQueryInfo>
-
containsValue
- Specified by:
containsValuein interfaceMap<Long,PersistentQueryInfo>
-
values
- Specified by:
valuesin interfaceMap<Long,PersistentQueryInfo>
-
putAll
- Specified by:
putAllin interfaceMap<Long,PersistentQueryInfo>
-
entrySet
- Specified by:
entrySetin interfaceMap<Long,PersistentQueryInfo>
-
keySet
- Specified by:
keySetin interfaceMap<Long,PersistentQueryInfo>
-
get
- Specified by:
getin interfaceMap<Long,PersistentQueryInfo>
-
get
-
getUnderlyingMap
- Specified by:
getUnderlyingMapin classControllerHashtable
-