| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private Handler | |
| private Handler | |
| private Handler | |
| private Handler | |
| private final String | |
| private static final Logger | |
| private Handler | |
| private final TCPMetrics | |
| private final String | |
| private final InboundBuffer | |
| private MessageConsumer | |
| private final SocketAddress | |
| private final SslChannelProvider | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | NetSocketImpl(ContextInternal context, ChannelHandlerContext channel, SslChannelProvider sslChannelProvider, TCPMetrics<S> metrics, boolean registerWriteHandler)
|
| public | NetSocketImpl(ContextInternal context, ChannelHandlerContext channel, SocketAddress remoteAddress, SslChannelProvider sslChannelProvider, TCPMetrics<S> metrics, String hostnameVerificationAlgorithm, String negotiatedApplicationLayerProtocol, boolean registerWriteHandler)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| private synchronized void | |
| public NetSocketImpl | |
| public synchronized NetSocket | |
| public void | |
| public Future | |
| private synchronized Handler | |
| public synchronized NetSocket | endHandler(Handler<Void> endHandler)
Implements io.
This handler might be called after the close handler when the socket is paused and there are still buffers to deliver. |
| public synchronized NetSocketInternal | eventHandler(Handler<Object>
the handler to set handler)Implements io. Set an handler to process pipeline user events. |
| public NetSocketImpl | exceptionHandler(Handler<Throwable> handler)
Overrides io. Implements io.
|
| public NetSocket | fetch(long amount)
Implements io. Fetch the specified |
| protected void | |
| protected void | |
| protected void | handleInterestedOpsChanged()
Implements abstract io.
|
| public void | |
| private synchronized Handler | |
| public synchronized NetSocket | |
| private synchronized Handler | |
| public synchronized NetSocketInternal | messageHandler(Handler<Object>
the handler to set handler)Implements io. Set a |
| public TCPMetrics | |
| public synchronized NetSocket | pause()
Implements io. Pause the |
| pack-priv void | |
| public synchronized NetSocket | resume()
Implements io. Resume reading, and sets the buffer in |
| public Future | sendFile(String
file name of the file to send filename, long offset offset, long length length)Implements io. Tell the operating system to stream a file as specified by |
| public NetSocket | sendFile(String
file name of the file to send filename, long offset offset, long length length, final Handler<AsyncResult<Void>> handler resultHandler)Implements io. Same as |
| public NetSocket | setWriteQueueMaxSize(int
the max size of the write stream maxSize)Implements io. Set the maximum size of the write queue to |
| pack-priv void | |
| public Future | upgradeToSsl()
Implements io. Like |
| public Future | upgradeToSsl(String serverName)
Implements io. Like |
| public NetSocket | upgradeToSsl(Handler<AsyncResult<Void>>
the handler will be notified when it's upgraded handler)Implements io. Upgrade channel to use SSL/TLS. |
| public NetSocket | upgradeToSsl(String
the server name serverName, Handler<AsyncResult<Void>> the handler will be notified when it's upgraded handler)Implements io. Upgrade channel to use SSL/TLS. |
| public Future | write(Buffer
the data to write data)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Write some data to the stream. |
| public void | write(String str, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| public Future | write(String
the string to write str)Implements io. Write a |
| public Future | write(String
the string to write str, String the encoding to use enc)Implements io. Write a |
| public void | write(String str, String enc, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| public void | write(Buffer message, Handler<AsyncResult<Void>> handler)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Like |
| private void | write(ByteBuf buff, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| public String | writeHandlerID()
Implements io. When a |
| public synchronized Future | writeMessage(Object
the message to write, it should be handled by one of the channel pipeline handlers message)Implements io. Write a message in the channel pipeline. |
| public NetSocketInternal | writeMessage(Object message, Handler<AsyncResult<Void>> handler)
Implements io. Like |
| public boolean | writeQueueFull()
Implements io. This will return |
| drainHandler | back to summary |
|---|---|
| private Handler<Void> drainHandler | |
| endHandler | back to summary |
|---|---|
| private Handler<Void> endHandler | |
| eventHandler | back to summary |
|---|---|
| private Handler<Object> eventHandler | |
| handler | back to summary |
|---|---|
| private Handler<Buffer> handler | |
| hostnameVerificationAlgorithm | back to summary |
|---|---|
| private final String hostnameVerificationAlgorithm | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| messageHandler | back to summary |
|---|---|
| private Handler<Object> messageHandler | |
| metrics | back to summary |
|---|---|
| private final TCPMetrics<S> metrics | |
| negotiatedApplicationLayerProtocol | back to summary |
|---|---|
| private final String negotiatedApplicationLayerProtocol | |
| pending | back to summary |
|---|---|
| private final InboundBuffer<Object> pending | |
| registration | back to summary |
|---|---|
| private MessageConsumer<T> registration | |
| remoteAddress | back to summary |
|---|---|
| private final SocketAddress remoteAddress | |
| sslChannelProvider | back to summary |
|---|---|
| private final SslChannelProvider sslChannelProvider | |
| writeHandlerID | back to summary |
|---|---|
| private final String writeHandlerID | |
| NetSocketImpl | back to summary |
|---|---|
| public NetSocketImpl(ContextInternal context, ChannelHandlerContext channel, SslChannelProvider sslChannelProvider, TCPMetrics<S> metrics, boolean registerWriteHandler) | |
| NetSocketImpl | back to summary |
|---|---|
| public NetSocketImpl(ContextInternal context, ChannelHandlerContext channel, SocketAddress remoteAddress, SslChannelProvider sslChannelProvider, TCPMetrics<S> metrics, String hostnameVerificationAlgorithm, String negotiatedApplicationLayerProtocol, boolean registerWriteHandler) | |
| applicationLayerProtocol | back to summary |
|---|---|
| public String applicationLayerProtocol() Implements io.
| |
| callDrainHandler | back to summary |
|---|---|
| private synchronized void callDrainHandler() | |
| closeHandler | back to summary |
|---|---|
| public NetSocketImpl closeHandler(Handler<Void> handler) Overrides io.
| |
| drainHandler | back to summary |
|---|---|
| public synchronized NetSocket drainHandler(Handler<Void> drainHandler) Implements io.
| |
| end | back to summary |
|---|---|
| public void end(Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Calls
| |
| end | back to summary |
|---|---|
| public Future Implements io. Doc from io. Calls | |
| endHandler | back to summary |
|---|---|
| private synchronized Handler | |
| endHandler | back to summary |
|---|---|
| public synchronized NetSocket endHandler(Handler<Void> endHandler) Implements io. Doc from io.
This handler might be called after the close handler when the socket is paused and there are still buffers to deliver.
| |
| eventHandler | back to summary |
|---|---|
| public synchronized NetSocketInternal eventHandler(Handler<Object> handler) Implements io. Doc from io. Set an handler to process pipeline user events.
The handler should take care of releasing event, e.g calling
| |
| exceptionHandler | back to summary |
|---|---|
| public NetSocketImpl exceptionHandler(Handler<Throwable> handler) Overrides io. Implements io. | |
| fetch | back to summary |
|---|---|
| public NetSocket fetch(long amount) Implements io. Doc from io. Fetch the specified | |
| handleClosed | back to summary |
|---|---|
| protected void handleClosed() Overrides io.
| |
| handleEvent | back to summary |
|---|---|
| protected void handleEvent(Object evt) Overrides io.
| |
| handleInterestedOpsChanged | back to summary |
|---|---|
| protected void handleInterestedOpsChanged() Implements abstract io.
| |
| handleMessage | back to summary |
|---|---|
| public void handleMessage(Object msg) Overrides io.
| |
| handler | back to summary |
|---|---|
| private synchronized Handler | |
| handler | back to summary |
|---|---|
| public synchronized NetSocket handler(Handler<Buffer> dataHandler) Implements io.
| |
| messageHandler | back to summary |
|---|---|
| private synchronized Handler | |
| messageHandler | back to summary |
|---|---|
| public synchronized NetSocketInternal messageHandler(Handler<Object> handler) Implements io. Doc from io. Set a
The
The handler replaces any
| |
| metrics | back to summary |
|---|---|
| public TCPMetrics Implements abstract io.
| |
| pause | back to summary |
|---|---|
| public synchronized NetSocket pause() Implements io. Doc from io. Pause the
While it's paused, no data will be sent to the data | |
| registerEventBusHandler | back to summary |
|---|---|
| pack-priv void registerEventBusHandler() | |
| resume | back to summary |
|---|---|
| public synchronized NetSocket resume() Implements io. Doc from io. Resume reading, and sets the buffer in
If the | |
| sendFile | back to summary |
|---|---|
| public Future Implements io. Doc from io. Tell the operating system to stream a file as specified by | |
| sendFile | back to summary |
|---|---|
| public NetSocket sendFile(String filename, long offset, long length, final Handler<AsyncResult<Void>> resultHandler) Implements io. Doc from io. Same as | |
| setWriteQueueMaxSize | back to summary |
|---|---|
| public NetSocket setWriteQueueMaxSize(int maxSize) Implements io. Doc from io. Set the maximum size of the write queue to
The value is defined by the implementation of the stream, e.g in bytes for a
| |
| unregisterEventBusHandler | back to summary |
|---|---|
| pack-priv void unregisterEventBusHandler() | |
| upgradeToSsl | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| upgradeToSsl | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| upgradeToSsl | back to summary |
|---|---|
| public NetSocket upgradeToSsl(Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Upgrade channel to use SSL/TLS. Be aware that for this to work SSL must be configured.
| |
| upgradeToSsl | back to summary |
|---|---|
| public NetSocket upgradeToSsl(String serverName, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Upgrade channel to use SSL/TLS. Be aware that for this to work SSL must be configured. | |
| write | back to summary |
|---|---|
| public Future Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Write some data to the stream. The data is usually put on an internal write queue, and the write actually happens
asynchronously. To avoid running out of memory by putting too much on the write queue,
check the When the | |
| write | back to summary |
|---|---|
| public void write(String str, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Same as
| |
| write | back to summary |
|---|---|
| public Future Implements io. Doc from io. Write a | |
| write | back to summary |
|---|---|
| public Future Implements io. Doc from io. Write a | |
| write | back to summary |
|---|---|
| public void write(String str, String enc, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Same as
| |
| write | back to summary |
|---|---|
| public void write(Buffer message, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Like
| |
| write | back to summary |
|---|---|
| private void write(ByteBuf buff, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Same as | |
| writeHandlerID | back to summary |
|---|---|
| public String writeHandlerID() Implements io. Doc from io. When a
By default, no handler is registered, the feature must be enabled via Given this ID, a different event loop can send a buffer to that event handler using the event bus and that buffer will be received by this instance in its own event loop and written to the underlying connection. This allows you to write data to other connections which are owned by different event loops. | |
| writeMessage | back to summary |
|---|---|
| public synchronized Future Implements io. Doc from io. Write a message in the channel pipeline. When a read operation is in progress, the flush operation is delayed until the read operation completes. | |
| writeMessage | back to summary |
|---|---|
| public NetSocketInternal writeMessage(Object message, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Like
| |
| writeQueueFull | back to summary |
|---|---|
| public boolean writeQueueFull() Implements io. Doc from io. This will return
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | handle(Object
the event to handle msg)Implements io. Something has happened, so handle it. |
| private void |
| DataMessageHandler | back to summary |
|---|---|
| private DataMessageHandler() | |
| handle | back to summary |
|---|---|
| public void handle(Object msg) Implements io. Doc from io. Something has happened, so handle it. | |
| handleInvalid | back to summary |
|---|---|
| private void handleInvalid(Object msg) | |