public final class AsyncUdpSocketImpl extends Object implements AsyncUdpSocket, NioChannelEventHandler
| Modifier and Type | Class and Description |
|---|---|
static interface |
AsyncUdpSocketImpl.Inspector |
static class |
AsyncUdpSocketImpl.JmxInspector |
AsyncUdpSocket.EventHandler| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static AsyncUdpSocketImpl |
create(Eventloop eventloop,
DatagramChannel channel) |
boolean |
isOpen() |
void |
onReadReady() |
void |
onWriteReady() |
void |
receive() |
void |
register() |
void |
send(UdpPacket packet) |
void |
setEventHandler(AsyncUdpSocket.EventHandler eventHandler) |
void |
setReceiveBufferSize(int receiveBufferSize) |
String |
toString() |
AsyncUdpSocketImpl |
withInspector(AsyncUdpSocketImpl.Inspector inspector) |
public static AsyncUdpSocketImpl create(Eventloop eventloop, DatagramChannel channel)
public AsyncUdpSocketImpl withInspector(AsyncUdpSocketImpl.Inspector inspector)
public void setEventHandler(AsyncUdpSocket.EventHandler eventHandler)
setEventHandler in interface AsyncUdpSocketpublic void setReceiveBufferSize(int receiveBufferSize)
public void register()
public final boolean isOpen()
public void receive()
receive in interface AsyncUdpSocketpublic void onReadReady()
onReadReady in interface NioChannelEventHandlerpublic void send(UdpPacket packet)
send in interface AsyncUdpSocketpublic void onWriteReady()
onWriteReady in interface NioChannelEventHandlerpublic void close()
close in interface AsyncUdpSocketCopyright © 2019. All rights reserved.