public class ControllerHashtableClient extends ControllerHashtable implements com.fishlib.net.api.CommandHandler, com.fishlib.net.api.ConnectionStatusHandlerEx
id
addCommandHandler, addEventHandler, removeCommandHandler, removeEventHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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.CommandHandler
public 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.CommandHandler
public void disconnect()
throws IOException
disconnect in class ControllerHashtable
IOExceptionpublic void addEventHandlerAndGetData(ControllerHashtableEventHandler handler)
addEventHandlerAndGetData in interface ControllerHashtableEventSource
handler - the handler for ControllerHashTableEventspublic void subscribeToAll()
throws IOException
subscribeToAll in class ControllerHashtable
IOExceptionpublic Map<Long,PersistentQueryInfo> getUnderlyingMap()
getUnderlyingMap in class ControllerHashtable
public void handleConnectionLost(com.fishlib.net.api.ClientEntry client)
handleConnectionLost in interface com.fishlib.net.CommBase.ConnectionStatusHandler
public void handleConnectionReestablished()
handleConnectionReestablished in interface com.fishlib.net.CommBase.ConnectionStatusHandler
public void handleInitialConnection(com.fishlib.net.api.CommClient commClient)
handleInitialConnection in interface com.fishlib.net.api.ConnectionStatusHandlerEx