Package io.deephaven.enterprise.comm.api
Interface CommServer
- All Superinterfaces:
com.fishlib.base.log.LogOutputAppendable
- All Known Implementing Classes:
AbstractCommServer,DelegatingCommServer,Server,WebSocketCommProxy,WSCommServer
public interface CommServer
extends com.fishlib.base.log.LogOutputAppendable
(description of class)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClientEntry(ClientEntry client) voidaddCommandHandler(String id, CommandHandler commandHandler) voidintgetPort()voidhandleCommand(ClientEntry client, com.fishlib.base.Command cmd) voidvoidsendAsyncCommandWithResponse(ClientEntry client, String serviceId, com.fishlib.base.Command cmd, AsyncCommandHandler handler, long timeoutMillis, boolean allowFlush) default voidsendCommand(ClientEntry clientEntry, String id, com.fishlib.base.Command command) booleansendCommand(ClientEntry clientEntry, String id, com.fishlib.base.Command command, boolean allowFlush) voidsendCommand(String id, com.fishlib.base.Command command) voidsendCommand(String id, com.fishlib.base.Command command, int sendTo) default com.fishlib.base.CommandsendCommandWithResponse(ClientEntry client, String serviceId, com.fishlib.base.Command command) default com.fishlib.base.CommandsendCommandWithResponse(ClientEntry client, String serviceId, com.fishlib.base.Command command, AsyncCommandHandler handler) com.fishlib.base.CommandsendCommandWithResponse(ClientEntry client, String serviceId, com.fishlib.base.Command command, AsyncCommandHandler handler, long timeoutMillis, boolean allowFlush) voidFor unit tests: throw out all connected clients, but don't shut down the server sockets.Methods inherited from interface com.fishlib.base.log.LogOutputAppendable
append
-
Field Details
-
SEND_TO_ALL
static final int SEND_TO_ALL- See Also:
-
IGNORE_CACHE_CLIENTS
static final int IGNORE_CACHE_CLIENTS- See Also:
-
ONLY_CACHE_CLIENTS
static final int ONLY_CACHE_CLIENTS- See Also:
-
-
Method Details
-
getPort
int getPort() -
sendCommand
-
sendCommand
-
sendCommand
boolean sendCommand(ClientEntry clientEntry, String id, com.fishlib.base.Command command, boolean allowFlush) -
sendCommand
-
sendAsyncCommandWithResponse
void sendAsyncCommandWithResponse(ClientEntry client, String serviceId, com.fishlib.base.Command cmd, AsyncCommandHandler handler, long timeoutMillis, boolean allowFlush) throws IOException - Throws:
IOException
-
sendCommandWithResponse
com.fishlib.base.Command sendCommandWithResponse(ClientEntry client, String serviceId, com.fishlib.base.Command command, AsyncCommandHandler handler, long timeoutMillis, boolean allowFlush) throws IOException - Throws:
IOException
-
sendCommandWithResponse
default com.fishlib.base.Command sendCommandWithResponse(ClientEntry client, String serviceId, com.fishlib.base.Command command, AsyncCommandHandler handler) throws IOException - Throws:
IOException
-
sendCommandWithResponse
default com.fishlib.base.Command sendCommandWithResponse(ClientEntry client, String serviceId, com.fishlib.base.Command command) throws IOException - Throws:
IOException
-
getClientSet
List<ClientEntry> getClientSet() -
addCommandHandler
-
removeCommandHandler
-
disconnect
- Throws:
IOException
-
handleCommand
-
addClientEntry
-
TEST_SOCKET_CLOSE
For unit tests: throw out all connected clients, but don't shut down the server sockets.- Throws:
IOException
-