private static class NioUdpClient.Transaction extends java.lang.Object implements NioClient.KeyProcessor
Modifier and Type | Field and Description |
---|---|
private java.nio.channels.DatagramChannel |
channel |
private byte[] |
data |
private long |
endTime |
private java.util.concurrent.CompletableFuture<byte[]> |
f |
private int |
max |
Modifier | Constructor and Description |
---|---|
private |
Transaction() |
Modifier and Type | Method and Description |
---|---|
void |
processReadyKey(java.nio.channels.SelectionKey key) |
(package private) void |
send() |
private void |
silentCloseChannel() |
private final byte[] data
private final int max
private final long endTime
private final java.nio.channels.DatagramChannel channel
private final java.util.concurrent.CompletableFuture<byte[]> f
void send() throws java.io.IOException
java.io.IOException
public void processReadyKey(java.nio.channels.SelectionKey key)
processReadyKey
in interface NioClient.KeyProcessor
private void silentCloseChannel()