public interface CoreSession
| 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() |
boolean |
isConnected() |
boolean |
isWritePending() |
void |
readNext(MessageHandler messageHandler) |
int |
send(int totalBytesToWrite)
Tries to send the message.
|
boolean |
tryConnect() |
int |
writePendingBytes() |
void connect()
throws MFRuntimeException
MFRuntimeException - if any connection issue happensboolean tryConnect()
boolean isConnected()
void disconnect()
void readNext(MessageHandler messageHandler) throws MFRuntimeException
MFRuntimeExceptionint send(int totalBytesToWrite) throws MFRuntimeException
totalBytesToWrite - total number of bytes to writeMFRuntimeException - if the send fails due to connectivity issueslong getLastReceivedMessageTimestampMs()
long getLastSentMessageTimestampMs()
java.lang.String getId()
boolean isWritePending()
int writePendingBytes()
throws MFRuntimeException
MFRuntimeException