trait RedisClusterOps extends AutoCloseable
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- RedisClusterOps
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
addServer(server: ClusterNode): Try[Unit]
add server to internal pool
-
abstract
def
close(): Unit
- Definition Classes
- AutoCloseable
- Annotations
- @throws( classOf[java.lang.Exception] )
-
abstract
val
keyTag: Option[KeyTag]
- Attributes
- protected
-
abstract
def
listServers: List[ClusterNode]
list all running servers
-
abstract
def
nodeForKey(key: Any)(implicit format: Format): RedisClientPool
get node for the key
get node for the key
- Attributes
- protected[cluster]
-
abstract
def
onAllConns[T](body: (RedisClient) ⇒ T): Iterable[T]
- Attributes
- protected[cluster]
-
abstract
def
randomNode(): RedisClientPool
- Attributes
- protected[cluster]
-
abstract
def
removeServer(nodename: String): Unit
remove a server
-
abstract
def
replaceServer(server: ClusterNode): Unit
replace a server very useful when you want to replace a server in test mode to one in production mode
replace a server very useful when you want to replace a server in test mode to one in production mode
Use Case: Suppose I have a big list of key/value pairs which are replicated in 2 Redis servers - one having test values for every key and the other having production values for the same set of keys. In a cluster using replaceServer I can switch between test mode and production mode without disturbing the hash ring. This gives an additional level of abstraction on the node name decoupling it from the node address.
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
-
val
POINTS_PER_SERVER: Int
- Attributes
- protected[cluster]
-
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()
-
def
inSameNode[T](keys: Any*)(body: (RedisClient) ⇒ T)(implicit format: Format): T
- Attributes
- protected[cluster]
-
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()
-
def
processForKey[T](key: Any)(body: (RedisCommand) ⇒ T)(implicit format: Format): T
- Attributes
- protected[cluster]
-
def
processForKeys[T](keys: List[Any])(body: (List[Any]) ⇒ (RedisCommand) ⇒ T)(implicit format: Format): Iterable[T]
- Attributes
- protected[cluster]
-
val
r: Random
- Attributes
- protected
-
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()