trait RedisPubSub[F[_]] extends AnyRef
A RedisPubSub Represent an connection or group of connections communicating to the pubsub subsystem of Redis.
Only one caller should be responsible for runMessages, but delegation of how to handle errors and what to do when the connection closes or what state it closes is left to the user so they can determine what to do.
Subscription commands are run synchronous to matching subscriptions. If your operations need to take a long time please delegate them into a queue for handling without holding up other messages being processed.
- Source
- RedisPubSub.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RedisPubSub
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
- abstract def nonMessages(cb: (PubSubReply) ⇒ F[Unit]): F[Unit]
- abstract def ping: F[Unit]
- abstract def psubscribe(s: String, cb: (PMessage) ⇒ F[Unit]): F[Unit]
- abstract def psubscriptions: F[List[String]]
- abstract def publish(channel: String, message: String): F[Int]
- abstract def punsubscribe(s: String): F[Unit]
- abstract def runMessages: F[Unit]
- abstract def subscribe(s: String, cb: (Message) ⇒ F[Unit]): F[Unit]
- abstract def subscriptions: F[List[String]]
- abstract def unhandledMessages(cb: (PubSubMessage) ⇒ F[Unit]): F[Unit]
- abstract def unsubscribe(s: String): F[Unit]
- abstract def unsubscribeAll: F[Unit]
Concrete 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
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
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
- @throws( ... ) @native()