public class ControllerHashtableClient extends ControllerHashtable implements com.fishlib.net.api.CommandHandler, com.fishlib.net.api.ConnectionStatusHandlerEx
idaddCommandHandler, addEventHandler, removeCommandHandler, removeEventHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic void addReloadCommandListener(Consumer<PersistentQueryControllerConfiguration> reloadListener)
public com.fishlib.net.api.CommClient getComm()
public com.fishlib.base.hash.IndexableMap<Long,PersistentQueryInfo> getData()
public PersistentQueryInfo get(Object key)
get in interface Map<Long,PersistentQueryInfo>public PersistentQueryInfo put(Long key, PersistentQueryInfo value)
put in interface Map<Long,PersistentQueryInfo>public void clear()
clear in interface Map<Long,PersistentQueryInfo>public PersistentQueryInfo remove(Object key)
remove in interface Map<Long,PersistentQueryInfo>public void handleCommand(com.fishlib.net.api.ClientEntry client,
com.fishlib.base.Command cmd)
handleCommand in interface com.fishlib.net.api.CommandHandlerpublic int size()
size in interface Map<Long,PersistentQueryInfo>public boolean isEmpty()
isEmpty in interface Map<Long,PersistentQueryInfo>public boolean containsKey(Object key)
containsKey in interface Map<Long,PersistentQueryInfo>public boolean containsValue(Object value)
containsValue in interface Map<Long,PersistentQueryInfo>@NotNull public Collection<PersistentQueryInfo> values()
values in interface Map<Long,PersistentQueryInfo>public void putAll(@NotNull
Map<? extends Long,? extends PersistentQueryInfo> t)
putAll in interface Map<Long,PersistentQueryInfo>@NotNull public Set<Map.Entry<Long,PersistentQueryInfo>> entrySet()
entrySet in interface Map<Long,PersistentQueryInfo>@NotNull public Set<Long> keySet()
keySet in interface Map<Long,PersistentQueryInfo>public void handleClientDeath(com.fishlib.net.api.ClientEntry client)
handleClientDeath in interface com.fishlib.net.api.CommandHandlerpublic void disconnect()
throws IOException
disconnect in class ControllerHashtableIOExceptionpublic void addEventHandlerAndGetData(ControllerHashtableEventHandler handler)
addEventHandlerAndGetData in interface ControllerHashtableEventSourcehandler - the handler for ControllerHashTableEventspublic void subscribeToAll()
throws IOException
subscribeToAll in class ControllerHashtableIOExceptionpublic Map<Long,PersistentQueryInfo> getUnderlyingMap()
getUnderlyingMap in class ControllerHashtablepublic void handleConnectionLost(com.fishlib.net.api.ClientEntry client)
handleConnectionLost in interface com.fishlib.net.CommBase.ConnectionStatusHandlerpublic void handleConnectionReestablished()
handleConnectionReestablished in interface com.fishlib.net.CommBase.ConnectionStatusHandlerpublic void handleInitialConnection(com.fishlib.net.api.CommClient commClient)
handleInitialConnection in interface com.fishlib.net.api.ConnectionStatusHandlerEx