Class InjectedEmitterBuildItem


  • public final class InjectedEmitterBuildItem
    extends io.quarkus.builder.item.MultiBuildItem
    Represents an emitter injection.
    • Constructor Detail

      • InjectedEmitterBuildItem

        public InjectedEmitterBuildItem​(String name,
                                        String emitterType,
                                        String overflow,
                                        int bufferSize,
                                        boolean hasBroadcast,
                                        int awaitSubscribers)
    • Method Detail

      • of

        public static InjectedEmitterBuildItem of​(String name,
                                                  String emitterType,
                                                  String overflow,
                                                  int bufferSize,
                                                  boolean hasBroadcast,
                                                  int awaitSubscribers)
        Creates a new instance of InjectedEmitterBuildItem setting the overflow strategy.
        Parameters:
        name - the name of the stream
        emitterType - emitterType
        overflow - the overflow strategy
        bufferSize - the buffer size, if overflow is set to BUFFER
        Returns:
        the new InjectedEmitterBuildItem
      • getEmitterConfig

        public io.smallrye.reactive.messaging.EmitterConfiguration getEmitterConfig()