public interface ConnectionManager
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionListener(ConnectionListener connectionSettingListener)
add connection listener
|
CompletableFuture<Connection> |
connect(SocketAddress address)
connect
|
List<Connection> |
getConnectionList()
get a connection
|
void |
removeConnectionListener(ConnectionListener connectionSettingListener)
remove connection listener
|
void |
shutdown()
shutdown
close all connection
|
List<Connection> getConnectionList()
CompletableFuture<Connection> connect(SocketAddress address)
address - addressvoid shutdown()
void addConnectionListener(ConnectionListener connectionSettingListener)
connectionSettingListener - listener for connection status changingvoid removeConnectionListener(ConnectionListener connectionSettingListener)
connectionSettingListener - listener for connection status changingCopyright © 2019. All rights reserved.