Class AbstractEmitter<T>

    • Field Detail

      • internal

        protected final AtomicReference<io.smallrye.mutiny.subscription.MultiEmitter<? super Message<? extends T>>> internal
      • publisher

        protected final io.smallrye.mutiny.Multi<Message<? extends T>> publisher
      • name

        protected final String name
    • Constructor Detail

    • Method Detail

      • complete

        public void complete()
        Description copied from interface: EmitterBehavior
        Sends the completion event to the channel indicating that no other events will be sent afterward.
        Specified by:
        complete in interface EmitterBehavior
      • error

        public void error​(Exception e)
        Description copied from interface: EmitterBehavior
        Sends a failure event to the channel. No more events will be sent afterward.
        Specified by:
        error in interface EmitterBehavior
        Parameters:
        e - the exception, must not be null
      • isCancelled

        public boolean isCancelled()
        Specified by:
        isCancelled in interface EmitterBehavior
        Returns:
        true if the emitter has been terminated or the subscription cancelled.
      • hasRequests

        public boolean hasRequests()
        Specified by:
        hasRequests in interface EmitterBehavior
        Returns:
        true if one or more subscribers request messages from the corresponding channel where the emitter connects to, return false otherwise.
      • getPublisher

        public org.reactivestreams.Publisher<Message<? extends T>> getPublisher()
      • emit

        protected void emit​(Message<? extends T> message)