public class ZeroMQChannelStream<IN,OUT> extends ChannelStream<IN,OUT>
Channel.ConsumerSpeccontentStream, log, peer| Constructor and Description |
|---|
ZeroMQChannelStream(reactor.Environment env,
long prefetch,
PeerStream<IN,OUT,ChannelStream<IN,OUT>> peer,
reactor.core.Dispatcher eventsDispatcher,
reactor.core.Dispatcher ioDispatcher,
reactor.io.codec.Codec<reactor.io.buffer.Buffer,IN,OUT> codec) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.zeromq.ZMQ.Socket |
delegate() |
protected 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.
|
ZeroMQChannelStream<IN,OUT> |
setConnectionId(java.lang.String connectionId) |
ZeroMQChannelStream<IN,OUT> |
setSocket(org.zeromq.ZMQ.Socket socket) |
java.lang.String |
toString() |
protected void |
write(reactor.io.buffer.Buffer data,
org.reactivestreams.Subscriber<?> onComplete,
boolean flush)
Subclasses must implement this method to perform the actual IO of writing data to the connection.
|
protected 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.
|
protected 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, doDecoded, getCapacity, getDecoder, getDispatcher, getEncoder, getEnvironment, getIODispatcher, in, registerOnPeer, sink, sinkBuffers, subscribeadaptiveConsume, 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 ZeroMQChannelStream(@Nonnull
reactor.Environment env,
long prefetch,
PeerStream<IN,OUT,ChannelStream<IN,OUT>> peer,
@Nonnull
reactor.core.Dispatcher eventsDispatcher,
@Nonnull
reactor.core.Dispatcher ioDispatcher,
@Nullable
reactor.io.codec.Codec<reactor.io.buffer.Buffer,IN,OUT> codec)
public ZeroMQChannelStream<IN,OUT> setConnectionId(java.lang.String connectionId)
public ZeroMQChannelStream<IN,OUT> setSocket(org.zeromq.ZMQ.Socket socket)
public java.net.InetSocketAddress remoteAddress()
Channelprotected 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 channelprotected void write(reactor.io.buffer.Buffer data,
org.reactivestreams.Subscriber<?> onComplete,
boolean flush)
ChannelStreamwrite in class ChannelStream<IN,OUT>data - The data to write, as a Buffer.onComplete - The callback to invoke when the write is complete.protected 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 channelprotected void flush()
ChannelStreamflush in class ChannelStream<IN,OUT>public void close()
public Channel.ConsumerSpec on()
Channelpublic org.zeromq.ZMQ.Socket delegate()
delegate in class ChannelStream<IN,OUT>public java.lang.String toString()
toString in class reactor.rx.Stream<IN>