public interface NetworkClient<T extends NetworkSession<U>,U extends SessionConnection<?>>
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompletableFuture<T> |
connect(InetSocketAddress remoteAddress) |
CompletableFuture<T> |
connect(InetSocketAddress remoteAddress,
InetSocketAddress localAddress) |
CompletableFuture<T> connect(@Nonnull InetSocketAddress remoteAddress) throws Exception
ExceptionCompletableFuture<T> connect(@Nonnull InetSocketAddress remoteAddress, @Nullable InetSocketAddress localAddress) throws Exception
Exceptionvoid close()
Copyright © 2018–2019. All rights reserved.