Class EmitterImpl<T>
- java.lang.Object
 - 
- io.smallrye.reactive.messaging.extension.AbstractEmitter<T>
 - 
- io.smallrye.reactive.messaging.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.extension.AbstractEmitter
internal, name, 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.extension.AbstractEmitter
complete, emit, error, getPublisher, hasRequests, isCancelled 
- 
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:EmitterSends a payload to the channel.A
Messageobject will be created to hold the payload and the returnedCompletionStagewill be completed once thisMessageis acknowledged. If theMessageis never acknowledged, then theCompletionStagewill never be completed. 
 - 
 
 -