Class AbstractEmitter<T>
- java.lang.Object
-
- io.smallrye.reactive.messaging.providers.extension.AbstractEmitter<T>
-
- Direct Known Subclasses:
EmitterImpl
,MutinyEmitterImpl
public abstract class AbstractEmitter<T> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected AtomicReference<io.smallrye.mutiny.subscription.MultiEmitter<? super Message<? extends T>>>
internal
protected String
name
static NoStackTraceException
NO_SUBSCRIBER_EXCEPTION
protected io.smallrye.mutiny.Multi<Message<? extends T>>
publisher
protected AtomicReference<Throwable>
synchronousFailure
-
Constructor Summary
Constructors Constructor Description AbstractEmitter(EmitterConfiguration config, long defaultBufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 io.smallrye.mutiny.subscription.MultiEmitter<? super Message<? extends T>>
verify()
-
-
-
Field Detail
-
NO_SUBSCRIBER_EXCEPTION
public static final NoStackTraceException NO_SUBSCRIBER_EXCEPTION
-
internal
protected final AtomicReference<io.smallrye.mutiny.subscription.MultiEmitter<? super Message<? extends T>>> internal
-
name
protected final String name
-
synchronousFailure
protected final AtomicReference<Throwable> synchronousFailure
-
-
Constructor Detail
-
AbstractEmitter
public AbstractEmitter(EmitterConfiguration config, long defaultBufferSize)
-
-
Method Detail
-
complete
public void complete()
-
error
public void error(Exception e)
-
isCancelled
public boolean isCancelled()
-
hasRequests
public boolean hasRequests()
-
-