public class EventSink<T> extends Object implements KxPublisher<T>
| Modifier and Type | Field and Description |
|---|---|
protected org.nustaq.kontraktor.Actor |
actorSubs |
protected boolean |
canceled |
protected AtomicLong |
credits |
protected KxReactiveStreams |
streams |
protected org.reactivestreams.Subscriber |
subs |
| Constructor and Description |
|---|
EventSink() |
EventSink(KxReactiveStreams streams) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete() |
void |
error(Throwable th) |
KxReactiveStreams |
getKxStreamsInstance() |
boolean |
offer(T event) |
void |
subscribe(org.reactivestreams.Subscriber<? super T> subscriber) |
protected AtomicLong credits
protected org.nustaq.kontraktor.Actor actorSubs
protected volatile org.reactivestreams.Subscriber subs
protected volatile boolean canceled
protected KxReactiveStreams streams
public EventSink()
public EventSink(KxReactiveStreams streams)
public boolean offer(T event)
public void complete()
public void error(Throwable th)
public void subscribe(org.reactivestreams.Subscriber<? super T> subscriber)
subscribe in interface org.reactivestreams.Publisher<T>public KxReactiveStreams getKxStreamsInstance()
getKxStreamsInstance in interface KxPublisher<T>Copyright © 2016. All rights reserved.