public abstract class AbstractEmitter<T> extends Object
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()
public void error(Exception e)
public boolean isCancelled()
public boolean hasRequests()
Copyright © 2018–2021 SmallRye. All rights reserved.