class PgChannel extends 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.
- Alphabetic
- By Inheritance
- PgChannel
- ReadStream
- StreamBase
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new PgChannel(_asJava: AnyRef)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJava: AnyRef
- Definition Classes
- PgChannel → ReadStream → StreamBase
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
endHandler(endHandler: Handler[Unit]): PgChannel
Set an handler to be called when no more notifications will be received.
Set an handler to be called when no more notifications will be received. * @param endHandler the handler
- returns
a reference to this, so the API can be used fluently
- Definition Classes
- PgChannel → ReadStream
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exceptionHandler(handler: Handler[Throwable]): PgChannel
- Definition Classes
- PgChannel → ReadStream → StreamBase
-
def
fetch(arg0: Long): ReadStream[String]
- Definition Classes
- PgChannel → ReadStream
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
handler(handler: Handler[String]): PgChannel
Set or unset an handler to be called when a the channel is notified by Postgres.
Set or unset an handler to be called when a the channel is notified by Postgres.
- when the handler is set, the subscriber sends a
LISTENcommand if needed - when the handler is unset, the subscriber sends a
UNLISTENcommand if needed * @param handler the handler
- returns
a reference to this, so the API can be used fluently
- Definition Classes
- PgChannel → ReadStream
- when the handler is set, the subscriber sends a
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
pause(): PgChannel
Pause the channel, all notifications are discarded.
Pause the channel, all notifications are discarded. * @return a reference to this, so the API can be used fluently
- Definition Classes
- PgChannel → ReadStream
-
def
pipe(): Pipe[String]
- Definition Classes
- PgChannel → ReadStream
-
def
pipeTo(dst: WriteStream[String], handler: Handler[AsyncResult[Unit]]): Unit
- Definition Classes
- PgChannel → ReadStream
-
def
pipeTo(dst: WriteStream[String]): Unit
- Definition Classes
- PgChannel → ReadStream
-
def
pipeToFuture(dst: WriteStream[String]): Future[Unit]
- Definition Classes
- PgChannel → ReadStream
-
def
resume(): PgChannel
Resume the channel.
Resume the channel. * @return a reference to this, so the API can be used fluently
- Definition Classes
- PgChannel → ReadStream
-
def
subscribeHandler(handler: Handler[Unit]): PgChannel
Set an handler called when the the channel get subscribed.
Set an handler called when the the channel get subscribed. * @param handler the handler
- returns
a reference to this, so the API can be used fluently
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )