org.programmiersportgruppe.redis.client

RedisSubscriptionActor

class RedisSubscriptionActor extends RedisConnectionActor

Subscribes to one or more channels and calls an event handler for received message.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RedisSubscriptionActor
  2. RedisConnectionActor
  3. Actor
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RedisSubscriptionActor(serverAddress: InetSocketAddress, messageToParentOnSubscribed: Option[Any], channels: Seq[ByteString], onMessage: (PubSubMessage) ⇒ Unit)

    serverAddress

    address of the server to connect to

    messageToParentOnSubscribed

    optional message to send to parent actor when connected

    channels

    list of channels to subscribe to

    onMessage

    callback invoked with each message received

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Definition Classes
    Actor

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def aroundPostRestart(reason: Throwable): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  7. def aroundPostStop(): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  8. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  9. def aroundPreStart(): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  10. def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. implicit val context: ActorContext

    Definition Classes
    Actor
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. val log: LoggingAdapter

    Attributes
    protected[this]
    Definition Classes
    RedisConnectionActor
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def onConnectionClosed(closed: ConnectionClosed): Unit

    Callback invoked when the TCP connection to the server is closed

    Callback invoked when the TCP connection to the server is closed

    closed

    connection closed message from the TCP socket

    Attributes
    protected
    Definition Classes
    RedisConnectionActor
  25. def onExecuteCommand(command: Command, listener: ActorRef): Unit

    Callback invoked when a command is sent to the server

    Callback invoked when a command is sent to the server

    command

    command that was sent to the server

    listener

    reference to the actor that sent this command

    Attributes
    protected
    Definition Classes
    RedisConnectionActor
  26. def onReplyParsed(reply: RValue): Unit

    Callback for each reply parsed from the TCP stream from the server

    Callback for each reply parsed from the TCP stream from the server

    Attributes
    protected
    Definition Classes
    RedisSubscriptionActorRedisConnectionActor
  27. def postRestart(reason: Throwable): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  28. def postStop(): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  29. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  30. def preStart(): Unit

    Definition Classes
    RedisConnectionActor → Actor
  31. final def receive: PartialFunction[Any, Unit]

    Definition Classes
    RedisConnectionActor → Actor
  32. implicit final val self: ActorRef

    Definition Classes
    Actor
  33. final def sender(): ActorRef

    Definition Classes
    Actor
  34. val subscriptions: Queue[ByteString]

  35. def supervisorStrategy: SupervisorStrategy

    Definition Classes
    Actor
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. def unhandled(message: Any): Unit

    Definition Classes
    Actor
  39. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from RedisConnectionActor

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped