public class ConnectionManagerImpl extends java.lang.Object implements ConnectionManager
| Modifier and Type | Method and Description |
|---|---|
APIResult |
connectWithoutPinging() |
APIResult |
connectWithPinging() |
void |
disconnect() |
void |
dispatch() |
MFString |
getCurrentlyConnectedHost() |
int |
getCurrentlyConnectedPort() |
java.util.List<PingTime> |
getLastPingTimes() |
boolean |
isConnected() |
boolean |
isStopRequested() |
APIResult |
send(IMessage message) |
void |
stopDispatching() |
public APIResult connectWithPinging()
connectWithPinging in interface ConnectionManagerpublic APIResult connectWithoutPinging()
connectWithoutPinging in interface ConnectionManagerpublic boolean isConnected()
isConnected in interface ConnectionManagerpublic void disconnect()
disconnect in interface ConnectionManagerpublic void stopDispatching()
stopDispatching in interface ConnectionManagerpublic boolean isStopRequested()
isStopRequested in interface ConnectionManagerpublic java.util.List<PingTime> getLastPingTimes()
getLastPingTimes in interface ConnectionManagerpublic MFString getCurrentlyConnectedHost()
getCurrentlyConnectedHost in interface ConnectionManagerpublic int getCurrentlyConnectedPort()
getCurrentlyConnectedPort in interface ConnectionManagerpublic void dispatch()
throws MFException
dispatch in interface ConnectionManagerMFExceptionpublic APIResult send(IMessage message)
send in interface ConnectionManager