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 interface
ControllerHashtableServer.ClientDeathObserver
A listener to keep track of client status and take appropriate actions. -
Field Summary
-
Method Summary
Modifier and Type Method Description void
addEventHandlerAndGetData(ControllerHashtableEventHandler handler)
void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
void
disconnect()
Set<Map.Entry<Long,PersistentQueryInfo>>
entrySet()
PersistentQueryInfo
get(long key)
PersistentQueryInfo
get(Object key)
String
getId()
Map<Long,PersistentQueryInfo>
getUnderlyingMap()
void
handleClientDeath(com.fishlib.net.api.ClientEntry client)
void
handleCommand(com.fishlib.net.api.ClientEntry client, com.fishlib.base.Command cmd)
boolean
isEmpty()
Set<Long>
keySet()
PersistentQueryInfo
put(Long key, PersistentQueryInfo value)
void
putAll(Map<? extends Long,? extends PersistentQueryInfo> t)
PersistentQueryInfo
remove(long key)
PersistentQueryInfo
remove(Object key)
int
size()
void
subscribeToAll()
Collection<PersistentQueryInfo>
values()
Methods inherited from class com.illumon.iris.controller.ControllerHashtable
addCommandHandler, addEventHandler, removeCommandHandler, removeEventHandler
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
handleCommand
in interfacecom.fishlib.net.api.CommandHandler
-
addEventHandlerAndGetData
- Specified by:
addEventHandlerAndGetData
in interfaceControllerHashtableEventSource
-
handleClientDeath
public void handleClientDeath(com.fishlib.net.api.ClientEntry client)- Specified by:
handleClientDeath
in interfacecom.fishlib.net.api.CommandHandler
-
disconnect
- Specified by:
disconnect
in classControllerHashtable
- Throws:
IOException
-
subscribeToAll
- Specified by:
subscribeToAll
in classControllerHashtable
- Throws:
IOException
-
put
- Specified by:
put
in interfaceMap<Long,PersistentQueryInfo>
-
remove
- Specified by:
remove
in interfaceMap<Long,PersistentQueryInfo>
-
remove
-
size
public int size()- Specified by:
size
in interfaceMap<Long,PersistentQueryInfo>
-
clear
public void clear()- Specified by:
clear
in interfaceMap<Long,PersistentQueryInfo>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceMap<Long,PersistentQueryInfo>
-
containsKey
- Specified by:
containsKey
in interfaceMap<Long,PersistentQueryInfo>
-
containsValue
- Specified by:
containsValue
in interfaceMap<Long,PersistentQueryInfo>
-
values
- Specified by:
values
in interfaceMap<Long,PersistentQueryInfo>
-
putAll
- Specified by:
putAll
in interfaceMap<Long,PersistentQueryInfo>
-
entrySet
- Specified by:
entrySet
in interfaceMap<Long,PersistentQueryInfo>
-
keySet
- Specified by:
keySet
in interfaceMap<Long,PersistentQueryInfo>
-
get
- Specified by:
get
in interfaceMap<Long,PersistentQueryInfo>
-
get
-
getUnderlyingMap
- Specified by:
getUnderlyingMap
in classControllerHashtable
-