Class EmitterImpl<T>
- java.lang.Object
-
- io.smallrye.reactive.messaging.providers.extension.AbstractEmitter<T>
-
- io.smallrye.reactive.messaging.providers.extension.EmitterImpl<T>
-
- Type Parameters:
T
- the type of payload sent by the emitter.
- All Implemented Interfaces:
Emitter<T>
public class EmitterImpl<T> extends AbstractEmitter<T> implements Emitter<T>
Implementation of the emitter pattern.
-
-
Field Summary
-
Fields inherited from class io.smallrye.reactive.messaging.providers.extension.AbstractEmitter
internal, name, NO_SUBSCRIBER_EXCEPTION, publisher, synchronousFailure
-
-
Constructor Summary
Constructors Constructor Description EmitterImpl(EmitterConfiguration config, long defaultBufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <M extends Message<? extends T>>
voidsend(M msg)
Sends a message to the channel.CompletionStage<Void>
send(T payload)
Sends a payload to the channel.-
Methods inherited from class io.smallrye.reactive.messaging.providers.extension.AbstractEmitter
complete, emit, error, getPublisher, hasRequests, isCancelled, verify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.microprofile.reactive.messaging.Emitter
complete, error, hasRequests, isCancelled
-
-
-
-
Constructor Detail
-
EmitterImpl
public EmitterImpl(EmitterConfiguration config, long defaultBufferSize)
-
-
Method Detail
-
send
public CompletionStage<Void> send(T payload)
Description copied from interface:Emitter
Sends a payload to the channel.A
Message
object will be created to hold the payload and the returnedCompletionStage
will be completed once thisMessage
is acknowledged. If theMessage
is never acknowledged, then theCompletionStage
will never be completed.
-
-