public class NettyDatagramServer<IN,OUT> extends DatagramServer<IN,OUT>
DatagramServer implementation built on Netty.channels, prefetch| Constructor and Description |
|---|
NettyDatagramServer(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 NettyChannelStream<IN,OUT> |
bindChannel(java.lang.Object _ioChannel,
long prefetch)
Subclasses should implement this method and provide a
ChannelStream object. |
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,
java.net.NetworkInterface iface)
Leave a multicast group.
|
reactor.rx.Promise<java.lang.Boolean> |
shutdown()
Shutdown this Server and complete the returned
Promise when shut
down. |
reactor.rx.Promise<java.lang.Boolean> |
start()
Start this server.
|
getListenAddress, getMulticastInterface, getOptions, join, leave, pipelineaddWritePublisher, completeConsumer, createAdaptiveDemandMapper, createBatchAction, createErrorConsumer, doPipeline, getDefaultCodec, getDispatcher, getEnvironment, getPrefetchSize, mergeWrite, notifyError, notifyNewChannel, notifyShutdown, routeChannel, subscribe, subscribeChannelHandlersadaptiveConsume, adaptiveConsumeOn, batchConsume, batchConsumeOn, broadcast, broadcastOn, broadcastTo, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, cache, capacity, cast, cleanSubscriptionReference, combine, concatMap, concatWith, consume, consume, consume, consume, consume, consumeLater, consumeOn, consumeOn, consumeOn, count, count, defaultIfEmpty, dematerialize, dispatchOn, dispatchOn, dispatchOn, distinct, distinct, distinctUntilChanged, distinctUntilChanged, downstreamSubscription, elapsed, elementAt, elementAtOrDefault, env, exists, fanIn, filter, filter, finallyDo, flatMap, getCapacity, getTimer, groupBy, ignoreErrors, ignoreErrors, isReactivePull, join, joinWith, keepAlive, last, lift, log, log, map, materialize, merge, mergeWith, nest, next, notify, notify, observe, observeCancel, observeComplete, observeError, observeSubscribe, onErrorResumeNext, onErrorResumeNext, onErrorReturn, onErrorReturn, onOverflowBuffer, onOverflowBuffer, onOverflowDrop, partition, partition, recover, reduce, reduce, repeat, repeat, repeatWhen, requestWhen, retry, retry, retry, retry, retryWhen, sample, sample, sample, sample, sample, sample, sampleFirst, sampleFirst, sampleFirst, sampleFirst, sampleFirst, sampleFirst, scan, scan, skip, skip, skip, skipWhile, skipWhile, sort, sort, sort, sort, split, split, startWith, startWith, startWith, subscribe, subscribeOn, subscribeOn, subscribeOn, switchMap, take, take, take, takeWhile, takeWhile, tap, throttle, throttle, timeout, timeout, timeout, timeout, timestamp, toBlockingQueue, toBlockingQueue, toList, toList, toString, when, window, window, window, window, window, window, window, window, window, window, window, zip, zipWith, zipWithpublic NettyDatagramServer(@Nonnull
reactor.Environment env,
@Nonnull
reactor.core.Dispatcher dispatcher,
@Nullable
java.net.InetSocketAddress listenAddress,
@Nullable
java.net.NetworkInterface multicastInterface,
@Nonnull
ServerSocketOptions options,
@Nullable
reactor.io.codec.Codec<reactor.io.buffer.Buffer,IN,OUT> codec)
public reactor.rx.Promise<java.lang.Boolean> start()
DatagramServerpublic reactor.rx.Promise<java.lang.Boolean> shutdown()
ServerPromise when shut
down.Promise that will be complete when the Server is shut downpublic reactor.rx.Promise<java.lang.Void> join(java.net.InetAddress multicastAddress,
java.net.NetworkInterface iface)
DatagramServerjoin in class DatagramServer<IN,OUT>multicastAddress - multicast address of the group to joiniface - interface to use for multicastpublic reactor.rx.Promise<java.lang.Void> leave(java.net.InetAddress multicastAddress,
java.net.NetworkInterface iface)
DatagramServerleave in class DatagramServer<IN,OUT>multicastAddress - multicast address of the group to leaveiface - interface to use for multicastprotected NettyChannelStream<IN,OUT> bindChannel(java.lang.Object _ioChannel, long prefetch)
PeerStreamChannelStream object.bindChannel in class PeerStream<IN,OUT,ChannelStream<IN,OUT>>