- java.lang.Object
-
- io.vertx.mutiny.pgclient.pubsub.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 theLISTEN/UNLISTENcommands. When paused the channel discards the messages. NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.smallrye.mutiny.vertx.TypeArg<PgChannel>__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PgChannelendHandler(Runnable endHandler)booleanequals(Object o)PgChannelexceptionHandler(Consumer<Throwable> handler)io.vertx.mutiny.core.streams.ReadStream<String>fetch(long arg0)io.vertx.pgclient.pubsub.PgChannelgetDelegate()PgChannelhandler(Consumer<String> handler)inthashCode()static PgChannelnewInstance(io.vertx.pgclient.pubsub.PgChannel arg)PgChannelpause()io.vertx.mutiny.core.streams.Pipe<String>pipe()io.smallrye.mutiny.Uni<Void>pipeTo(io.vertx.mutiny.core.streams.WriteStream<String> dst)VoidpipeToAndAwait(io.vertx.mutiny.core.streams.WriteStream<String> dst)voidpipeToAndForget(io.vertx.mutiny.core.streams.WriteStream<String> dst)PgChannelresume()PgChannelsubscribeHandler(Runnable handler)Iterable<String>toBlockingIterable()Stream<String>toBlockingStream()io.smallrye.mutiny.Multi<String>toMulti()StringtoString()
-
-
-
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:
getDelegatein interfaceio.vertx.mutiny.core.streams.ReadStream<String>- Specified by:
getDelegatein interfaceio.vertx.mutiny.core.streams.StreamBase
-
fetch
public io.vertx.mutiny.core.streams.ReadStream<String> fetch(long arg0)
- Specified by:
fetchin interfaceio.vertx.mutiny.core.streams.ReadStream<String>
-
pipe
public io.vertx.mutiny.core.streams.Pipe<String> pipe()
- Specified by:
pipein interfaceio.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:
pipeToin interfaceio.vertx.mutiny.core.streams.ReadStream<String>
-
pipeToAndAwait
public Void pipeToAndAwait(io.vertx.mutiny.core.streams.WriteStream<String> dst)
- Specified by:
pipeToAndAwaitin interfaceio.vertx.mutiny.core.streams.ReadStream<String>
-
pipeToAndForget
public void pipeToAndForget(io.vertx.mutiny.core.streams.WriteStream<String> dst)
- Specified by:
pipeToAndForgetin interfaceio.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:
handlerin interfaceio.vertx.mutiny.core.streams.ReadStream<String>- Parameters:
handler- the handler- Returns:
-
pause
public PgChannel pause()
- Specified by:
pausein interfaceio.vertx.mutiny.core.streams.ReadStream<String>- Returns:
- a reference to this, so the API can be used fluently
-
resume
public PgChannel resume()
- Specified by:
resumein interfaceio.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:
endHandlerin interfaceio.vertx.mutiny.core.streams.ReadStream<String>- Parameters:
endHandler- the handler- Returns:
-
exceptionHandler
public PgChannel exceptionHandler(Consumer<Throwable> handler)
- Specified by:
exceptionHandlerin interfaceio.vertx.mutiny.core.streams.ReadStream<String>- Specified by:
exceptionHandlerin interfaceio.vertx.mutiny.core.streams.StreamBase
-
toMulti
@CheckReturnValue public io.smallrye.mutiny.Multi<String> toMulti()
- Specified by:
toMultiin interfaceio.vertx.mutiny.core.streams.ReadStream<String>
-
newInstance
public static PgChannel newInstance(io.vertx.pgclient.pubsub.PgChannel arg)
-
-