public abstract class DatagramServer<IN,OUT> extends ReactorPeer<IN,OUT,ChannelStream<IN,OUT>>
started| Modifier | Constructor and Description |
|---|---|
protected |
DatagramServer(reactor.Environment env,
reactor.core.Dispatcher dispatcher,
java.net.InetSocketAddress listenAddress,
java.net.NetworkInterface multicastInterface,
ServerSocketOptions options,
reactor.io.codec.Codec<reactor.io.buffer.Buffer,IN,OUT> codec) |
| Modifier and Type | Method and Description |
|---|---|
protected java.net.InetSocketAddress |
getListenAddress()
Get the address to which this server is bound.
|
protected java.net.NetworkInterface |
getMulticastInterface()
Get the
NetworkInterface on which multicast will be performed. |
protected ServerSocketOptions |
getOptions()
Get the
ServerSocketOptions currently in effect. |
reactor.rx.Promise<java.lang.Void> |
join(java.net.InetAddress multicastAddress)
Join a multicast group.
|
abstract reactor.rx.Promise<java.lang.Void> |
join(java.net.InetAddress multicastAddress,
java.net.NetworkInterface iface)
Join a multicast group.
|
reactor.rx.Promise<java.lang.Void> |
leave(java.net.InetAddress multicastAddress)
Leave a multicast group.
|
abstract reactor.rx.Promise<java.lang.Void> |
leave(java.net.InetAddress multicastAddress,
java.net.NetworkInterface iface)
Leave a multicast group.
|
doShutdown, doStart, getDefaultCodec, getDefaultDispatcher, getDefaultEnvironment, getDefaultPrefetchSize, shutdown, startprotected DatagramServer(reactor.Environment env,
reactor.core.Dispatcher dispatcher,
java.net.InetSocketAddress listenAddress,
java.net.NetworkInterface multicastInterface,
ServerSocketOptions options,
reactor.io.codec.Codec<reactor.io.buffer.Buffer,IN,OUT> codec)
public abstract reactor.rx.Promise<java.lang.Void> join(java.net.InetAddress multicastAddress,
java.net.NetworkInterface iface)
multicastAddress - multicast address of the group to joiniface - interface to use for multicastPromise that will be complete when the group has been joinedpublic reactor.rx.Promise<java.lang.Void> join(java.net.InetAddress multicastAddress)
multicastAddress - multicast address of the group to joinPromise that will be complete when the group has been joinedpublic abstract reactor.rx.Promise<java.lang.Void> leave(java.net.InetAddress multicastAddress,
java.net.NetworkInterface iface)
multicastAddress - multicast address of the group to leaveiface - interface to use for multicastPromise that will be complete when the group has been leftpublic reactor.rx.Promise<java.lang.Void> leave(java.net.InetAddress multicastAddress)
multicastAddress - multicast address of the group to leavePromise that will be complete when the group has been leftprotected java.net.InetSocketAddress getListenAddress()
protected java.net.NetworkInterface getMulticastInterface()
NetworkInterface on which multicast will be performed.protected ServerSocketOptions getOptions()
ServerSocketOptions currently in effect.