public interface ConnectionManager
Connection. Provides higher-level functionality such as connecting, disconnecting, reading and writing.| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Attempts to connect to the configured server by host and port.
|
void |
disconnect() |
java.lang.String |
getId() |
long |
getLastReceivedMessageTimestampMs() |
long |
getLastSentMessageTimestampMs() |
void |
read() |
int |
send(int totalBytesToWrite) |
void |
writePendingBytes() |
java.lang.String getId()
void connect()
throws MFRuntimeException
MFRuntimeException - if any connection issue happensvoid disconnect()
int send(int totalBytesToWrite) throws MFRuntimeException
MFRuntimeExceptionvoid read() throws MFDisconnectedException
MFDisconnectedExceptionlong getLastReceivedMessageTimestampMs()
long getLastSentMessageTimestampMs()
void writePendingBytes()
throws MFRuntimeException
MFRuntimeException