org.programmiersportgruppe.redis.client

RedisConnectionActor

abstract class RedisConnectionActor extends Actor

A TCP connection to a Redis server

When the actor is instantiated, it establishes a connection to a Redis server. Once it has established the connection, it sends the connectionSetupCommands to the server, and the optional messageToParentOnConnected to its parent. If the actor fails to connect to the server, an RedisConnectionActor.UnableToConnectException is thrown.

It will then send any commands it receives to the server, and call onReplyParsed for each reply parsed from the server. If a command is received before the connection to the server has been established, a RedisConnectionActor.NotReadyException is thrown.

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

Instance Constructors

  1. new RedisConnectionActor(serverAddress: InetSocketAddress, connectionSetupCommands: Seq[Command], messageToParentOnConnected: Option[Any])

    serverAddress

    address to connect to

    connectionSetupCommands

    commands to send immediately after establishing the connection

    messageToParentOnConnected

    message to send to parent actor immediately after sending connection setup commands

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Definition Classes
    Actor

Abstract Value Members

  1. abstract 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

Concrete 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

  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
  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
  26. def postRestart(reason: Throwable): Unit

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

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

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

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  30. def receive: PartialFunction[Any, Unit]

    Definition Classes
    RedisConnectionActor → Actor
  31. val remote: InetSocketAddress

  32. val replyReconstructor: ReplyReconstructor

  33. implicit final val self: ActorRef

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

    Definition Classes
    Actor
  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 Actor

Inherited from AnyRef

Inherited from Any

Ungrouped