public interface PgChannel extends io.vertx.core.streams.ReadStream<String>
LISTEN/UNLISTEN commands.
When paused the channel discards the messages.| Modifier and Type | Method and Description |
|---|---|
PgChannel |
endHandler(io.vertx.core.Handler<Void> endHandler)
Set an handler to be called when no more notifications will be received.
|
PgChannel |
exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
PgChannel |
handler(io.vertx.core.Handler<String> handler)
Set or unset an handler to be called when a the channel is notified by Postgres.
|
PgChannel |
pause()
Pause the channel, all notifications are discarded.
|
PgChannel |
resume()
Resume the channel.
|
PgChannel |
subscribeHandler(io.vertx.core.Handler<Void> handler)
Set an handler called when the the channel get subscribed.
|
PgChannel subscribeHandler(io.vertx.core.Handler<Void> handler)
handler - the handlerPgChannel handler(io.vertx.core.Handler<String> handler)
LISTEN command if neededUNLISTEN command if neededhandler in interface io.vertx.core.streams.ReadStream<String>handler - the handlerPgChannel pause()
pause in interface io.vertx.core.streams.ReadStream<String>PgChannel resume()
resume in interface io.vertx.core.streams.ReadStream<String>PgChannel endHandler(io.vertx.core.Handler<Void> endHandler)
endHandler in interface io.vertx.core.streams.ReadStream<String>endHandler - the handlerCopyright © 2019 Eclipse. All rights reserved.