abstract
class
RedisConnectionActor extends Actor
Instance Constructors
-
new
RedisConnectionActor(serverAddress: InetSocketAddress, connectionSetupCommands: Seq[Command], messageToParentOnConnected: Option[Any])
Abstract Value Members
-
abstract
def
onReplyParsed(reply: RValue): Unit
Concrete Value Members
-
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
-
final
def
==(arg0: Any): Boolean
-
def
aroundPostRestart(reason: Throwable): Unit
-
def
aroundPostStop(): Unit
-
def
aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
-
def
aroundPreStart(): Unit
-
def
aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
onConnectionClosed(closed: ConnectionClosed): Unit
-
def
onExecuteCommand(command: Command, listener: ActorRef): Unit
-
def
postRestart(reason: Throwable): Unit
-
def
postStop(): Unit
-
def
preRestart(reason: Throwable, message: Option[Any]): Unit
-
def
preStart(): Unit
-
-
val
remote: InetSocketAddress
-
val
replyReconstructor: ReplyReconstructor
-
implicit final
val
self: ActorRef
-
final
def
sender(): ActorRef
-
def
supervisorStrategy: SupervisorStrategy
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
unhandled(message: Any): Unit
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
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 optionalmessageToParentOnConnected
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.