public abstract class ChannelStream<IN,OUT> extends reactor.rx.Stream<IN> implements ReactorChannel<IN,OUT>
ReactorChannel implementation that handles the basic interaction and behave as a Stream.ReactorChannel.ConsumerSpec| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Modifier | Constructor and Description |
|---|---|
protected |
ChannelStream(reactor.Environment env,
reactor.io.codec.Codec<reactor.io.buffer.Buffer,IN,OUT> codec,
long prefetch,
reactor.core.Dispatcher eventsDispatcher) |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
delegate() |
protected abstract void |
doDecoded(IN in) |
protected abstract void |
doSubscribeWriter(org.reactivestreams.Publisher<? extends OUT> writer,
org.reactivestreams.Subscriber<? super java.lang.Void> postWriter) |
long |
getCapacity() |
reactor.fn.Function<reactor.io.buffer.Buffer,IN> |
getDecoder() |
reactor.core.Dispatcher |
getDispatcher() |
reactor.fn.Function<OUT,reactor.io.buffer.Buffer> |
getEncoder() |
reactor.Environment |
getEnvironment() |
reactor.rx.Stream<java.lang.Void> |
writeBufferWith(org.reactivestreams.Publisher<? extends reactor.io.buffer.Buffer> source)
Write Buffer directly to be encoded if any codec has been setup
|
reactor.rx.Stream<java.lang.Void> |
writeWith(org.reactivestreams.Publisher<? extends OUT> source)
Send data to the peer, listen for any error on write and close on terminal signal (complete|error).
|
adaptiveConsume, adaptiveConsumeOn, after, batchConsume, batchConsumeOn, broadcast, broadcastOn, broadcastTo, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, cache, cancelSubscription, capacity, cast, combine, concatMap, concatWith, consume, consume, consume, consume, consume, consumeLater, consumeOn, consumeOn, consumeOn, count, count, decode, defaultIfEmpty, dematerialize, dispatchOn, dispatchOn, dispatchOn, distinct, distinct, distinctUntilChanged, distinctUntilChanged, downstreamSubscription, elapsed, elementAt, elementAtOrDefault, encode, env, exists, fanIn, filter, filter, finallyDo, flatMap, getTimer, groupBy, ignoreError, ignoreError, isReactivePull, join, joinWith, keepAlive, last, lift, log, log, map, materialize, merge, mergeWith, nest, next, observe, observeCancel, observeComplete, observeError, observeStart, observeSubscribe, onErrorResumeNext, onErrorResumeNext, onErrorReturn, onErrorReturn, onOverflowBuffer, onOverflowBuffer, onOverflowDrop, partition, partition, process, 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, tap, throttle, throttle, timeout, timeout, timeout, timeout, timestamp, toBlockingQueue, toBlockingQueue, toList, toList, toString, unbounded, when, window, window, window, window, window, window, window, window, window, window, window, zip, zipWith, zipWithclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiton, remoteAddresspublic final reactor.rx.Stream<java.lang.Void> writeWith(org.reactivestreams.Publisher<? extends OUT> source)
ReactorChannelwriteWith in interface ReactorChannel<IN,OUT>source - the dataStream publishing OUT items to write on this channelpublic final reactor.rx.Stream<java.lang.Void> writeBufferWith(org.reactivestreams.Publisher<? extends reactor.io.buffer.Buffer> source)
source - the raw source to encodewriteWith(Publisher)public final reactor.Environment getEnvironment()
getEnvironment in class reactor.rx.Stream<IN>public final reactor.core.Dispatcher getDispatcher()
getDispatcher in class reactor.rx.Stream<IN>public final long getCapacity()
getCapacity in interface reactor.core.support.NonBlockinggetCapacity in class reactor.rx.Stream<IN>public final reactor.fn.Function<reactor.io.buffer.Buffer,IN> getDecoder()
public final reactor.fn.Function<OUT,reactor.io.buffer.Buffer> getEncoder()
public abstract java.lang.Object delegate()
protected abstract void doSubscribeWriter(org.reactivestreams.Publisher<? extends OUT> writer, org.reactivestreams.Subscriber<? super java.lang.Void> postWriter)
protected abstract void doDecoded(IN in)