public interface PubSubDatagramChannelWrapper
DatagramChannel or anything that can be made to same abstraction.
IMPORTANT! The methods in this interface reflects what SDK needs from the channel and can change.
Unless otherwise noted, method implementations of this interface should behave like in defined in
DatagramChannel.| Modifier and Type | Method and Description |
|---|---|
void |
bind(InetSocketAddress localAddress) |
void |
close() |
void |
configureBlocking(boolean isBlockingMode) |
void |
join(InetAddress multicastAddress,
NetworkInterface networkInterface) |
SocketAddress |
receive(ByteBuffer buffer) |
void |
send(ByteBuffer buffer,
InetSocketAddress sendAddress) |
<T> void |
setOption(SocketOption<T> option,
T value) |
void bind(InetSocketAddress localAddress) throws IOException
IOExceptionvoid close()
throws IOException
IOExceptionvoid configureBlocking(boolean isBlockingMode)
throws IOException
IOExceptionvoid join(InetAddress multicastAddress, NetworkInterface networkInterface) throws IOException
IOExceptionSocketAddress receive(ByteBuffer buffer) throws IOException
IOExceptionvoid send(ByteBuffer buffer, InetSocketAddress sendAddress) throws IOException
IOException<T> void setOption(SocketOption<T> option, T value) throws IOException
IOExceptionCopyright © 2026. All rights reserved.