Class PgChannel

  • All Implemented Interfaces:
    io.vertx.mutiny.core.streams.ReadStream<String>, io.vertx.mutiny.core.streams.StreamBase

    public class PgChannel
    extends Object
    implements io.vertx.mutiny.core.streams.ReadStream<String>
    A channel to Postgres that tracks the subscription to a given Postgres channel using the LISTEN/UNLISTEN commands.

    When paused the channel discards the messages.

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

    • Field Detail

      • __TYPE_ARG

        public static final io.smallrye.mutiny.vertx.TypeArg<PgChannel> __TYPE_ARG
    • Constructor Detail

      • PgChannel

        public PgChannel​(io.vertx.pgclient.pubsub.PgChannel delegate)
      • PgChannel

        public PgChannel​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.pgclient.pubsub.PgChannel getDelegate()
        Specified by:
        getDelegate in interface io.vertx.mutiny.core.streams.ReadStream<String>
        Specified by:
        getDelegate in interface io.vertx.mutiny.core.streams.StreamBase
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fetch

        public io.vertx.mutiny.core.streams.ReadStream<String> fetch​(long arg0)
        Specified by:
        fetch in interface io.vertx.mutiny.core.streams.ReadStream<String>
      • pipe

        public io.vertx.mutiny.core.streams.Pipe<String> pipe()
        Specified by:
        pipe in interface io.vertx.mutiny.core.streams.ReadStream<String>
      • pipeTo

        @CheckReturnValue
        public io.smallrye.mutiny.Uni<Void> pipeTo​(io.vertx.mutiny.core.streams.WriteStream<String> dst)
        Specified by:
        pipeTo in interface io.vertx.mutiny.core.streams.ReadStream<String>
      • pipeToAndAwait

        public Void pipeToAndAwait​(io.vertx.mutiny.core.streams.WriteStream<String> dst)
        Specified by:
        pipeToAndAwait in interface io.vertx.mutiny.core.streams.ReadStream<String>
      • pipeToAndForget

        public void pipeToAndForget​(io.vertx.mutiny.core.streams.WriteStream<String> dst)
        Specified by:
        pipeToAndForget in interface io.vertx.mutiny.core.streams.ReadStream<String>
      • subscribeHandler

        public PgChannel subscribeHandler​(Runnable handler)
        Parameters:
        handler - the handler
        Returns:
      • handler

        public PgChannel handler​(Consumer<String> handler)
        Specified by:
        handler in interface io.vertx.mutiny.core.streams.ReadStream<String>
        Parameters:
        handler - the handler
        Returns:
      • pause

        public PgChannel pause()
        Specified by:
        pause in interface io.vertx.mutiny.core.streams.ReadStream<String>
        Returns:
        a reference to this, so the API can be used fluently
      • resume

        public PgChannel resume()
        Specified by:
        resume in interface io.vertx.mutiny.core.streams.ReadStream<String>
        Returns:
        a reference to this, so the API can be used fluently
      • endHandler

        public PgChannel endHandler​(Runnable endHandler)
        Specified by:
        endHandler in interface io.vertx.mutiny.core.streams.ReadStream<String>
        Parameters:
        endHandler - the handler
        Returns:
      • exceptionHandler

        public PgChannel exceptionHandler​(Consumer<Throwable> handler)
        Specified by:
        exceptionHandler in interface io.vertx.mutiny.core.streams.ReadStream<String>
        Specified by:
        exceptionHandler in interface io.vertx.mutiny.core.streams.StreamBase
      • toMulti

        @CheckReturnValue
        public io.smallrye.mutiny.Multi<String> toMulti()
        Specified by:
        toMulti in interface io.vertx.mutiny.core.streams.ReadStream<String>
      • toBlockingStream

        public Stream<String> toBlockingStream()
      • newInstance

        public static PgChannel newInstance​(io.vertx.pgclient.pubsub.PgChannel arg)