| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final NetServerImpl. | |
| private long | |
| private Handler | |
| private Handler | |
| private Handler | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected synchronized boolean | |
| protected BiConsumer | childHandler(ContextInternal context, SocketAddress socketAddress, GlobalTrafficShapingHandler trafficShapingHandler)
Implements abstract io.
|
| public Future | close()
Implements abstract io. Implements io. Close the server. |
| public void | close(Handler<AsyncResult<Void>>
the handler completionHandler)Implements io. Like |
| public synchronized void | close(Promise<Void>
the promise to signal when close has completed completion)Overrides io. Implements io. Close this resource, the |
| public synchronized Handler | |
| public synchronized NetServer | |
| public ReadStream | connectStream()
Implements io. Return the connect stream for this server. |
| protected TCPMetrics | createMetrics(SocketAddress localAddress)
Overrides io.
|
| public synchronized NetServer | exceptionHandler(Handler<Throwable>
the handler to set handler)Implements io. Set an exception handler called for socket errors happening before the connection
is passed to the |
| private synchronized void | |
| protected void | |
| public boolean | |
| public synchronized Future | listen(SocketAddress
the local address to listen on localAddress)Implements io. Start listening on the specified local address, ignoring port and host configured in the |
| public Future | listen()
Implements io. Start listening on the port and host as configured in the |
| private synchronized void | |
| private synchronized void |
| connectStream | back to summary |
|---|---|
| private final NetServerImpl. | |
| demand | back to summary |
|---|---|
| private long demand | |
| endHandler | back to summary |
|---|---|
| private Handler<Void> endHandler | |
| exceptionHandler | back to summary |
|---|---|
| private Handler<Throwable> exceptionHandler | |
| handler | back to summary |
|---|---|
| private Handler<NetSocket> handler | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| NetServerImpl | back to summary |
|---|---|
| public NetServerImpl(VertxInternal vertx, NetServerOptions options) | |
| accept | back to summary |
|---|---|
| protected synchronized boolean accept() | |
| childHandler | back to summary |
|---|---|
| protected BiConsumer Implements abstract io.
| |
| close | back to summary |
|---|---|
| public Future Implements abstract io. Implements io. Doc from io. Close the server. This will close any currently open connections. The close may not complete until after this method has returned. | |
| close | back to summary |
|---|---|
| public void close(Handler<AsyncResult<Void>> completionHandler) Implements io. Doc from io. Like
| |
| close | back to summary |
|---|---|
| public synchronized void close(Promise<Void> completion) Overrides io. Implements io. Doc from io. Close this resource, the | |
| connectHandler | back to summary |
|---|---|
| public synchronized Handler Implements io.
| |
| connectHandler | back to summary |
|---|---|
public synchronized NetServer connectHandler(Handler<NetSocket> handler)
| |
| connectStream | back to summary |
|---|---|
| public ReadStream Implements io. Doc from io. Return the connect stream for this server. The server can only have at most one handler at any one time.
As the server accepts TCP or SSL connections it creates an instance of
| |
| createMetrics | back to summary |
|---|---|
| protected TCPMetrics Overrides io.
| |
| exceptionHandler | back to summary |
|---|---|
| public synchronized NetServer exceptionHandler(Handler<Throwable> handler) Implements io. Doc from io. Set an exception handler called for socket errors happening before the connection
is passed to the | |
| fetchAccepting | back to summary |
|---|---|
| private synchronized void fetchAccepting(long amount) | |
| initChannel | back to summary |
|---|---|
| protected void initChannel(ChannelPipeline pipeline, boolean ssl) | |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() | |
| listen | back to summary |
|---|---|
| public synchronized Future Implements io. Doc from io. Start listening on the specified local address, ignoring port and host configured in the The server may not be listening until some time after the call to listen has returned.
| |
| listen | back to summary |
|---|---|
| public Future Implements io. Doc from io. Start listening on the port and host as configured in the The server may not be listening until some time after the call to listen has returned. | |
| pauseAccepting | back to summary |
|---|---|
| private synchronized void pauseAccepting() | |
| resumeAccepting | back to summary |
|---|---|
| private synchronized void resumeAccepting() | |
| Modifier and Type | Field and Description |
|---|---|
| private final Handler | |
| private final ContextInternal | |
| private final Handler | |
| private final GlobalTrafficShapingHandler |
| Access | Constructor and Description |
|---|---|
| pack-priv | NetServerWorker(ContextInternal context, Handler<NetSocket> connectionHandler, Handler<Throwable> exceptionHandler, GlobalTrafficShapingHandler trafficShapingHandler)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(Channel
the first input argument ch, SslChannelProvider the second input argument sslChannelProvider)Implements java. Performs this operation on the given arguments. |
| private void | |
| private void | |
| private void |
| connectionHandler | back to summary |
|---|---|
| private final Handler<NetSocket> connectionHandler | |
| context | back to summary |
|---|---|
| private final ContextInternal context | |
| exceptionHandler | back to summary |
|---|---|
| private final Handler<Throwable> exceptionHandler | |
| trafficShapingHandler | back to summary |
|---|---|
| private final GlobalTrafficShapingHandler trafficShapingHandler | |
| NetServerWorker | back to summary |
|---|---|
| pack-priv NetServerWorker(ContextInternal context, Handler<NetSocket> connectionHandler, Handler<Throwable> exceptionHandler, GlobalTrafficShapingHandler trafficShapingHandler) | |
| accept | back to summary |
|---|---|
| public void accept(Channel ch, SslChannelProvider sslChannelProvider) Implements java. Doc from java. Performs this operation on the given arguments.
| |
| configurePipeline | back to summary |
|---|---|
| private void configurePipeline(Channel ch, SslChannelProvider sslChannelProvider) | |
| connected | back to summary |
|---|---|
| private void connected(Channel ch, SslChannelProvider sslChannelProvider) | |
| handleException | back to summary |
|---|---|
| private void handleException(Throwable cause) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public NetServerImpl. | |
| public NetServerImpl. | |
| public ReadStream | fetch(long amount)
Implements io. Fetch the specified |
| public NetServerImpl. | |
| public NetServerImpl. | pause()
Implements io. Pause the |
| public NetServerImpl. | resume()
Implements io. Resume reading, and sets the buffer in |
| NetSocketStream | back to summary |
|---|---|
| private NetSocketStream() | |
| endHandler | back to summary |
|---|---|
public NetServerImpl.
| |
| exceptionHandler | back to summary |
|---|---|
public NetServerImpl.
| |
| fetch | back to summary |
|---|---|
| public ReadStream Implements io. Doc from io. Fetch the specified
| |
| handler | back to summary |
|---|---|
public NetServerImpl.
| |
| pause | back to summary |
|---|---|
| public NetServerImpl. Implements io. Doc from io. Pause the
While it's paused, no data will be sent to the data
| |
| resume | back to summary |
|---|---|
| public NetServerImpl. Implements io. Doc from io. Resume reading, and sets the buffer in
If the
| |