public class ProtonServerImpl extends Object implements ProtonServer
| Constructor and Description |
|---|
ProtonServerImpl(Vertx vertx) |
ProtonServerImpl(Vertx vertx,
ProtonServerOptions options) |
| Modifier and Type | Method and Description |
|---|---|
int |
actualPort()
Gets the actual port being listened on.
|
void |
close()
Closes the server and any currently open connections.
|
void |
close(Handler<AsyncResult<Void>> handler)
Closes the server and any currently open connections, notifying the given handler when complete.
|
Handler<ProtonConnection> |
connectHandler()
Returns the current connectHandler.
|
ProtonServerImpl |
connectHandler(Handler<ProtonConnection> handler)
The handler called when a new client connection is accepted.
|
boolean |
isMetricsEnabled() |
ProtonServerImpl |
listen()
Start listening on the host and port configured in the options used when creating the server.
|
ProtonServerImpl |
listen(Handler<AsyncResult<ProtonServer>> handler)
Start listening on the host and port configured in the options used when creating the server, with the result
handler called when the operation completes.
|
ProtonServerImpl |
listen(int i)
Start listening on the given port, and host interface "0.0.0.0".
|
ProtonServerImpl |
listen(int i,
Handler<AsyncResult<ProtonServer>> handler)
Start listening on the given port and host interface "0.0.0.0", with the result handler called when the operation
completes.
|
ProtonServerImpl |
listen(int i,
String s)
Start listening on the given port, and host interface.
|
ProtonServerImpl |
listen(int port,
String host,
Handler<AsyncResult<ProtonServer>> handler)
Start listening on the given port and host interface, with the result handler called when the operation completes.
|
ProtonServer |
saslAuthenticatorFactory(ProtonSaslAuthenticatorFactory authenticatorFactory)
Sets the authenticator factory to be used by the server.
|
void |
setAdvertiseAnonymousRelayCapability(boolean advertiseAnonymousRelayCapability) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createpublic ProtonServerImpl(Vertx vertx)
public ProtonServerImpl(Vertx vertx, ProtonServerOptions options)
public int actualPort()
ProtonServeractualPort in interface ProtonServerpublic ProtonServerImpl listen(int i)
ProtonServerlisten in interface ProtonServeri - the port to listen on (may be 0 to auto-select port)public ProtonServerImpl listen()
ProtonServerlisten in interface ProtonServerpublic boolean isMetricsEnabled()
public ProtonServerImpl listen(int port, String host, Handler<AsyncResult<ProtonServer>> handler)
ProtonServerlisten in interface ProtonServerport - the port to listen on (may be 0 to auto-select port)host - the host interface to listen on (may be "0.0.0.0" to indicate all interfaces).handler - the result handlerpublic ProtonServerImpl listen(Handler<AsyncResult<ProtonServer>> handler)
ProtonServerlisten in interface ProtonServerhandler - the result handlerpublic ProtonServerImpl listen(int i, String s)
ProtonServerlisten in interface ProtonServeri - the port to listen on (may be 0 to auto-select port)s - the host interface to listen on (may be "0.0.0.0" to indicate all interfaces).public ProtonServerImpl listen(int i, Handler<AsyncResult<ProtonServer>> handler)
ProtonServerlisten in interface ProtonServeri - the port to listen on (may be 0 to auto-select port)handler - the result handlerpublic void close()
ProtonServerclose in interface ProtonServerpublic void close(Handler<AsyncResult<Void>> handler)
ProtonServerclose in interface ProtonServerhandler - the completion handlerpublic Handler<ProtonConnection> connectHandler()
ProtonServerconnectHandler in interface ProtonServerpublic ProtonServer saslAuthenticatorFactory(ProtonSaslAuthenticatorFactory authenticatorFactory)
ProtonServersaslAuthenticatorFactory in interface ProtonServerauthenticatorFactory - the factory to be used for creating authenticators.public ProtonServerImpl connectHandler(Handler<ProtonConnection> handler)
ProtonServerconnectHandler in interface ProtonServerhandler - the handlerpublic void setAdvertiseAnonymousRelayCapability(boolean advertiseAnonymousRelayCapability)
Copyright © 2020. All rights reserved.