public class SyncProcessor<IN,OUT> extends Object implements org.reactivestreams.Processor<IN,OUT>, KxPublisher<OUT>
| Modifier and Type | Class and Description |
|---|---|
protected class |
SyncProcessor.MySubs |
| Modifier and Type | Field and Description |
|---|---|
protected long |
batchSize |
protected boolean |
done |
protected long |
initialRequest |
protected org.reactivestreams.Subscription |
inSubs |
protected org.reactivestreams.Subscription |
outSubs |
protected Function<IN,OUT> |
proc |
protected KxReactiveStreams |
streams |
protected org.reactivestreams.Subscriber<OUT> |
subscriber |
| Constructor and Description |
|---|
SyncProcessor(long batchSize,
Function<IN,OUT> proc,
KxReactiveStreams streams) |
| Modifier and Type | Method and Description |
|---|---|
KxReactiveStreams |
getKxStreamsInstance() |
void |
onComplete() |
void |
onError(Throwable t) |
void |
onNext(IN element) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
protected OUT |
process(IN element) |
void |
subscribe(org.reactivestreams.Subscriber<? super OUT> s) |
protected org.reactivestreams.Subscription inSubs
protected org.reactivestreams.Subscription outSubs
protected org.reactivestreams.Subscriber<OUT> subscriber
protected boolean done
protected long batchSize
protected long initialRequest
protected KxReactiveStreams streams
public SyncProcessor(long batchSize,
Function<IN,OUT> proc,
KxReactiveStreams streams)
public void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe in interface org.reactivestreams.Subscriber<IN>public void onNext(IN element)
onNext in interface org.reactivestreams.Subscriber<IN>public void onError(Throwable t)
onError in interface org.reactivestreams.Subscriber<IN>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<IN>public void subscribe(org.reactivestreams.Subscriber<? super OUT> s)
subscribe in interface org.reactivestreams.Publisher<OUT>public KxReactiveStreams getKxStreamsInstance()
getKxStreamsInstance in interface KxPublisher<OUT>Copyright © 2015. All rights reserved.