redis
SentinelClient
case class
SentinelClient
(
host:
String
=
"localhost"
,
port:
Int
=
26379
,
onMasterChange: (
String
,
String
,
Int
) ⇒
Unit
=
...
,
onNewSentinel: (
String
,
String
,
Int
) ⇒
Unit
=
...
,
onSentinelDown: (
String
,
String
,
Int
) ⇒
Unit
=
...
,
name:
String
=
"SentinelClient"
)
(
implicit
_system:
ActorSystem
)
extends
RedisClientActorLike
with
SentinelCommands
with
Product
with
Serializable
Source
Sentinel.scala
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
,
SentinelCommands
,
Sentinel
,
Request
,
RedisClientActorLike
,
ActorRequest
,
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
SentinelClient
Serializable
Serializable
Product
Equals
SentinelCommands
Sentinel
Request
RedisClientActorLike
ActorRequest
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
SentinelClient
(
host:
String
=
"localhost"
,
port:
Int
=
26379
,
onMasterChange: (
String
,
String
,
Int
) ⇒
Unit
=
...
,
onNewSentinel: (
String
,
String
,
Int
) ⇒
Unit
=
...
,
onSentinelDown: (
String
,
String
,
Int
) ⇒
Unit
=
...
,
name:
String
=
"SentinelClient"
)
(
implicit
_system:
ActorSystem
)
Value Members
final
def
!=
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
val
channels
:
Seq
[
String
]
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
val
db
:
Option
[
Int
]
Definition Classes
RedisClientActorLike
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
implicit
val
executionContext
:
ExecutionContextExecutor
Definition Classes
RedisClientActorLike
→
ActorRequest
def
failover
(
master:
String
)
:
Future
[
Boolean
]
Definition Classes
Sentinel
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getConnectOperations
: () ⇒
Seq
[
Operation
[_, _]]
Definition Classes
RedisClientActorLike
def
getMasterAddr
(
master:
String
)
:
Future
[
Option
[(
String
,
Int
)]]
Definition Classes
Sentinel
var
host
:
String
Definition Classes
SentinelClient
→
RedisClientActorLike
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
isMasterDown
(
master:
String
)
:
Future
[
Option
[
Boolean
]]
Definition Classes
Sentinel
val
log
:
LoggingAdapter
def
masters
()
:
Future
[
Seq
[
Map
[
String
,
String
]]]
Definition Classes
Sentinel
val
name
:
String
Definition Classes
SentinelClient
→
RedisClientActorLike
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
onConnect
(
redis:
RedisCommands
)
:
Unit
Definition Classes
RedisClientActorLike
val
onMasterChange
: (
String
,
String
,
Int
) ⇒
Unit
val
onMessage
: (
Message
) ⇒
Unit
val
onNewSentinel
: (
String
,
String
,
Int
) ⇒
Unit
val
onSentinelDown
: (
String
,
String
,
Int
) ⇒
Unit
val
password
:
Option
[
String
]
Definition Classes
RedisClientActorLike
var
port
:
Int
Definition Classes
SentinelClient
→
RedisClientActorLike
def
reconnect
(
host:
String
=
host
,
port:
Int
=
port
)
:
Unit
Definition Classes
RedisClientActorLike
val
redisConnection
:
ActorRef
Definition Classes
RedisClientActorLike
→
ActorRequest
val
redisPubSubConnection
:
ActorRef
def
resetMaster
(
pattern:
String
)
:
Future
[
Boolean
]
Definition Classes
Sentinel
def
send
[
T
]
(
redisCommand:
RedisCommand
[_ <:
RedisReply
,
T
]
)
:
Future
[
T
]
Definition Classes
ActorRequest
def
slaves
(
master:
String
)
:
Future
[
Seq
[
Map
[
String
,
String
]]]
Definition Classes
Sentinel
def
stop
()
:
Unit
Disconnect from the server (stop the actors)
Disconnect from the server (stop the actors)
Definition Classes
SentinelClient
→
RedisClientActorLike
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
val
system
:
ActorSystem
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
(
...
)
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from
SentinelCommands
Inherited from
Sentinel
Inherited from
Request
Inherited from
RedisClientActorLike
Inherited from
ActorRequest
Inherited from
AnyRef
Inherited from
Any
Ungrouped