| Modifier and Type | Field and Description |
|---|---|
| private DatagramSocketImpl | |
| private Handler | |
| private final String | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public PacketWriteStreamImpl | |
| public Future | |
| public void | end(Handler<AsyncResult<Void>> handler)
Overrides default io. Implements io. Same as |
| public PacketWriteStreamImpl | |
| public void | handle(AsyncResult<Void>
the event to handle event)Implements io. Something has happened, so handle it. |
| public PacketWriteStreamImpl | setWriteQueueMaxSize(int
the max size of the write stream maxSize)Implements io. Set the maximum size of the write queue to |
| 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(Buffer data, Handler<AsyncResult<Void>> handler)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Same as |
| public boolean | writeQueueFull()
Implements io. This will return |
| datagramSocket | back to summary |
|---|---|
| private DatagramSocketImpl datagramSocket | |
| exceptionHandler | back to summary |
|---|---|
| private Handler<Throwable> exceptionHandler | |
| host | back to summary |
|---|---|
| private final String host | |
| port | back to summary |
|---|---|
| private final int port | |
| PacketWriteStreamImpl | back to summary |
|---|---|
| pack-priv PacketWriteStreamImpl(DatagramSocketImpl datagramSocket, int port, String host) | |
| drainHandler | back to summary |
|---|---|
public PacketWriteStreamImpl drainHandler(Handler<Void> handler)
| |
| end | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Ends the stream. Once the stream has ended, it cannot be used any more. | |
| end | back to summary |
|---|---|
| public void end(Handler<AsyncResult<Void>> handler) Overrides default io. Implements io. Doc from io. Same as
| |
| exceptionHandler | back to summary |
|---|---|
public PacketWriteStreamImpl exceptionHandler(Handler<Throwable> handler)
| |
| handle | back to summary |
|---|---|
| public void handle(AsyncResult<Void> event) Implements io. Doc from io. Something has happened, so handle it.
| |
| setWriteQueueMaxSize | back to summary |
|---|---|
| public PacketWriteStreamImpl 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
| |
| 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(Buffer data, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Same as
| |
| writeQueueFull | back to summary |
|---|---|
| public boolean writeQueueFull() Implements io. Doc from io. This will return
| |