public class NettyChannelStream<IN,OUT> extends ChannelStream<IN,OUT>
Channel implementation that delegates to Netty.Channel.ConsumerSpeccontentStream, log, peer| Constructor and Description |
|---|
NettyChannelStream(reactor.Environment env,
reactor.io.codec.Codec<reactor.io.buffer.Buffer,IN,OUT> codec,
long prefetch,
PeerStream<IN,OUT,ChannelStream<IN,OUT>> peer,
reactor.core.Dispatcher ioDispatcher,
reactor.core.Dispatcher eventsDispatcher,
io.netty.channel.Channel ioChannel) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.Channel |
delegate() |
protected void |
doDecoded(IN in) |
void |
flush()
Subclasses must implement this method to perform IO flushes.
|
Channel.ConsumerSpec |
on()
Assign event handlers to certain channel lifecycle events.
|
java.net.InetSocketAddress |
remoteAddress()
Get the address of the remote peer.
|
java.lang.String |
toString() |
void |
write(java.nio.ByteBuffer data,
org.reactivestreams.Subscriber<?> onComplete,
boolean flush)
Subclasses must implement this method to perform the actual IO of writing data to the connection.
|
void |
write(java.lang.Object data,
org.reactivestreams.Subscriber<?> onComplete,
boolean flush)
Subclasses must implement this method to perform the actual IO of writing data to the connection.
|
cascadeErrorToPeer, decode, getCapacity, getDecoder, getDispatcher, getEncoder, getEnvironment, getIODispatcher, in, registerOnPeer, sink, sinkBuffers, subscribe, writeadaptiveConsume, 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, 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, when, window, window, window, window, window, window, window, window, window, window, window, zip, zipWith, zipWithpublic NettyChannelStream(@Nonnull
reactor.Environment env,
@Nullable
reactor.io.codec.Codec<reactor.io.buffer.Buffer,IN,OUT> codec,
long prefetch,
@Nonnull
PeerStream<IN,OUT,ChannelStream<IN,OUT>> peer,
@Nonnull
reactor.core.Dispatcher ioDispatcher,
@Nonnull
reactor.core.Dispatcher eventsDispatcher,
@Nonnull
io.netty.channel.Channel ioChannel)
public java.net.InetSocketAddress remoteAddress()
Channelpublic Channel.ConsumerSpec on()
Channelpublic io.netty.channel.Channel delegate()
delegate in class ChannelStream<IN,OUT>protected void doDecoded(IN in)
doDecoded in class ChannelStream<IN,OUT>public void write(java.nio.ByteBuffer data,
org.reactivestreams.Subscriber<?> onComplete,
boolean flush)
ChannelStreamwrite in class ChannelStream<IN,OUT>data - The data to write.onComplete - The callback to invoke when the write is complete.flush - whether to flush the underlying IO channelpublic void write(java.lang.Object data,
org.reactivestreams.Subscriber<?> onComplete,
boolean flush)
ChannelStreamwrite in class ChannelStream<IN,OUT>data - The data to write.onComplete - The callback to invoke when the write is complete.flush - whether to flush the underlying IO channelpublic void flush()
ChannelStreamflush in class ChannelStream<IN,OUT>public java.lang.String toString()
toString in class reactor.rx.Stream<IN>