- java.lang.Object
-
- io.vertx.mutiny.pgclient.pubsub.PgChannel
-
- All Implemented Interfaces:
ReadStream<String>,StreamBase
public class PgChannel extends Object implements 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)ReadStream<String>fetch(long arg0)io.vertx.pgclient.pubsub.PgChannelgetDelegate()PgChannelhandler(Consumer<String> handler)inthashCode()static PgChannelnewInstance(io.vertx.pgclient.pubsub.PgChannel arg)PgChannelpause()Pipe<String>pipe()io.smallrye.mutiny.Uni<Void>pipeTo(WriteStream<String> dst)VoidpipeToAndAwait(WriteStream<String> dst)voidpipeToAndForget(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 interfaceReadStream<String>- Specified by:
getDelegatein interfaceStreamBase
-
fetch
public ReadStream<String> fetch(long arg0)
- Specified by:
fetchin interfaceReadStream<String>
-
pipe
public Pipe<String> pipe()
- Specified by:
pipein interfaceReadStream<String>
-
pipeTo
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> pipeTo(WriteStream<String> dst)
- Specified by:
pipeToin interfaceReadStream<String>
-
pipeToAndAwait
public Void pipeToAndAwait(WriteStream<String> dst)
- Specified by:
pipeToAndAwaitin interfaceReadStream<String>
-
pipeToAndForget
public void pipeToAndForget(WriteStream<String> dst)
- Specified by:
pipeToAndForgetin interfaceReadStream<String>
-
subscribeHandler
public PgChannel subscribeHandler(Runnable handler)
- Parameters:
handler- the handler- Returns:
-
handler
public PgChannel handler(Consumer<String> handler)
- Specified by:
handlerin interfaceReadStream<String>- Parameters:
handler- the handler- Returns:
-
pause
public PgChannel pause()
- Specified by:
pausein interfaceReadStream<String>- Returns:
- a reference to this, so the API can be used fluently
-
resume
public PgChannel resume()
- Specified by:
resumein interfaceReadStream<String>- Returns:
- a reference to this, so the API can be used fluently
-
endHandler
public PgChannel endHandler(Runnable endHandler)
- Specified by:
endHandlerin interfaceReadStream<String>- Parameters:
endHandler- the handler- Returns:
-
exceptionHandler
public PgChannel exceptionHandler(Consumer<Throwable> handler)
- Specified by:
exceptionHandlerin interfaceReadStream<String>- Specified by:
exceptionHandlerin interfaceStreamBase
-
toMulti
@CheckReturnValue public io.smallrye.mutiny.Multi<String> toMulti()
- Specified by:
toMultiin interfaceReadStream<String>
-
newInstance
public static PgChannel newInstance(io.vertx.pgclient.pubsub.PgChannel arg)
-
-