public abstract class AbstractEmitter<T> extends Object implements EmitterBehavior
| Modifier and Type | Field and Description |
|---|---|
protected AtomicReference<io.smallrye.mutiny.subscription.MultiEmitter<? super Message<? extends T>>> |
internal |
protected String |
name |
protected io.smallrye.mutiny.Multi<Message<? extends T>> |
publisher |
protected AtomicReference<Throwable> |
synchronousFailure |
| Constructor and Description |
|---|
AbstractEmitter(EmitterConfiguration config,
long defaultBufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete() |
protected void |
emit(Message<? extends T> message) |
void |
error(Exception e) |
org.reactivestreams.Publisher<Message<? extends T>> |
getPublisher() |
boolean |
hasRequests() |
boolean |
isCancelled() |
protected final AtomicReference<io.smallrye.mutiny.subscription.MultiEmitter<? super Message<? extends T>>> internal
protected final String name
protected final AtomicReference<Throwable> synchronousFailure
public AbstractEmitter(EmitterConfiguration config, long defaultBufferSize)
public void complete()
complete in interface EmitterBehaviorpublic void error(Exception e)
error in interface EmitterBehaviorpublic boolean isCancelled()
isCancelled in interface EmitterBehaviorpublic boolean hasRequests()
hasRequests in interface EmitterBehaviorCopyright © 2018–2020 SmallRye. All rights reserved.