public interface ConnectionProvider<C>
| Modifier and Type | Method and Description |
|---|---|
void |
close(C conn)
Close a connection.
|
void |
connect(ConnectionListener<C> listener,
ContextInternal context,
Handler<AsyncResult<ConnectResult<C>>> resultHandler)
Connect to the server.
|
void connect(ConnectionListener<C> listener, ContextInternal context, Handler<AsyncResult<ConnectResult<C>>> resultHandler)
listener - the listenercontext - the context to use for the connectionresultHandler - the handler notified with the connection success or failurevoid close(C conn)
conn - the connectionCopyright © 2020. All rights reserved.