private class ChannelSendOperator.WriteWithBarrier
extends <any>
Modifier and Type | Field and Description |
---|---|
private boolean |
beforeFirstEmission
No emission from upstream yet
|
private boolean |
completed
Cached 1st/2nd signal before readyToWrite
|
private java.lang.Throwable |
error
Cached 1st/2nd signal before readyToWrite
|
private T |
item
Cached signal before readyToWrite
|
private boolean |
readyToWrite
We've at at least one emission, we've called the write function, the write
subscriber has subscribed and cached signals have been emitted to it.
|
private <any> |
writeSubscriber
The actual writeSubscriber vs the downstream completion subscriber
|
Constructor and Description |
---|
WriteWithBarrier(<any> subscriber) |
Modifier and Type | Method and Description |
---|---|
void |
doComplete() |
void |
doError(java.lang.Throwable ex) |
void |
doNext(T item) |
protected void |
doOnSubscribe(Subscription subscription) |
protected void |
doRequest(long n) |
private boolean |
emitCachedSignals()
Emit cached signals to the write subscriber.
|
void |
subscribe(<any> writeSubscriber) |
private boolean readyToWrite
private boolean beforeFirstEmission
private T item
private java.lang.Throwable error
private boolean completed
private <any> writeSubscriber
protected void doOnSubscribe(Subscription subscription)
public void doNext(T item)
public void doError(java.lang.Throwable ex)
public void doComplete()
public void subscribe(<any> writeSubscriber)
private boolean emitCachedSignals()
protected void doRequest(long n)