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:
io.smallrye.reactive.messaging.MessagePublisherProvider<T>, org.eclipse.microprofile.reactive.messaging.Emitter<T>

public class EmitterImpl<T> extends AbstractEmitter<T> implements org.eclipse.microprofile.reactive.messaging.Emitter<T>
Implementation of the emitter pattern.
  • Constructor Details

    • EmitterImpl

      public EmitterImpl(io.smallrye.reactive.messaging.EmitterConfiguration config, long defaultBufferSize)
  • Method Details

    • send

      public CompletionStage<Void> send(T payload)
      Specified by:
      send in interface org.eclipse.microprofile.reactive.messaging.Emitter<T>
    • send

      public <M extends org.eclipse.microprofile.reactive.messaging.Message<? extends T>> void send(M msg)
      Specified by:
      send in interface org.eclipse.microprofile.reactive.messaging.Emitter<T>