vertx-lang-scala-docs_2.12 3.8.0 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package redis
  Definition Classes
    scala
-  package sentinel
  Definition Classes
    redis
- RedisSentinel

c

io.vertx.scala.redis.sentinel

# RedisSentinel 

###
Companion object RedisSentinel

#### class RedisSentinel extends AnyRef

Interface for sentinel commands

Linear Supertypes
AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. RedisSentinel
2. AnyRef
3. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new RedisSentinel(_asJava: AnyRef)

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
5.  def asJava: AnyRef
6.  def ckquorum(name: String, handler: Handler[AsyncResult[String]]): RedisSentinel

   Check if the current Sentinel configuration is able to reach the quorum needed to failover a master, and the majority needed to authorize the failover.

   Check if the current Sentinel configuration is able to reach the quorum needed to failover a master, and the majority needed to authorize the failover. This command should be used in monitoring systems to check if a Sentinel deployment is ok. * @param name master name

   handler

     Handler for the result of this call

7.  def ckquorumFuture(name: String): Future[String]

   Like ckquorum but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

8.  def clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @native() @throws( ... )
9.  def close(handler: Handler[AsyncResult[Unit]]): Unit

   Close the client - when it is fully closed the handler will be called.

10.  def closeFuture(): Future[Unit]

    Like close but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

11.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
12.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
13.  def failover(name: String, handler: Handler[AsyncResult[String]]): RedisSentinel

    Force a failover as if the master was not reachable, and without asking for agreement to other Sentinels (however a new version of the configuration will be published so that the other Sentinels will update their configurations) * @param name master name

    Force a failover as if the master was not reachable, and without asking for agreement to other Sentinels (however a new version of the configuration will be published so that the other Sentinels will update their configurations) * @param name master name

    handler

      Handler for the result of this call

14.  def failoverFuture(name: String): Future[String]

    Like failover but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

15.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
16.  def flushConfig(handler: Handler[AsyncResult[Unit]]): RedisSentinel

    Force Sentinel to rewrite its configuration on disk, including the current Sentinel state.

    Force Sentinel to rewrite its configuration on disk, including the current Sentinel state. Normally Sentinel rewrites the configuration every time something changes in its state (in the context of the subset of the state which is persisted on disk across restart). However sometimes it is possible that the configuration file is lost because of operation errors, disk failures, package upgrade scripts or configuration managers. In those cases a way to to force Sentinel to rewrite the configuration file is handy. This command works even if the previous configuration file is completely missing. * @param handler Handler for the result of this call

17.  def flushConfigFuture(): Future[Unit]

    Like flushConfig but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

18.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
19.  def getMasterAddrByName(name: String, handler: Handler[AsyncResult[JsonArray]]): RedisSentinel

    Return the ip and port number of the master with that name.

    Return the ip and port number of the master with that name. If a failover is in progress or terminated successfully for this master it returns the address and port of the promoted slave * @param name master name

    handler

      Handler for the result of this call

20.  def getMasterAddrByNameFuture(name: String): Future[JsonArray]

    Like getMasterAddrByName but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

21.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
22.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
23.  def master(name: String, handler: Handler[AsyncResult[JsonArray]]): RedisSentinel

    Show the state and info of the specified master * @param name master name

    Show the state and info of the specified master * @param name master name

    handler

      Handler for the result of this call

24.  def masterFuture(name: String): Future[JsonArray]

    Like master but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

25.  def masters(handler: Handler[AsyncResult[JsonArray]]): RedisSentinel

    Show a list of monitored masters and their state * @param handler Handler for the result of this call

26.  def mastersFuture(): Future[JsonArray]

    Like masters but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

27.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
28.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
29.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
30.  def reset(pattern: String, handler: Handler[AsyncResult[Unit]]): RedisSentinel

    Reset all the masters with matching name.

    Reset all the masters with matching name. The pattern argument is a glob-style pattern. The reset process clears any previous state in a master (including a failover in pro * @param pattern pattern String

    handler

      Handler for the result of this call

31.  def resetFuture(pattern: String): Future[Unit]

    Like reset but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

32.  def sentinels(name: String, handler: Handler[AsyncResult[JsonArray]]): RedisSentinel

    Show a list of sentinel instances for this master, and their state * @param name master name

    Show a list of sentinel instances for this master, and their state * @param name master name

    handler

      Handler for the result of this call

33.  def sentinelsFuture(name: String): Future[JsonArray]

    Like sentinels but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

34.  def slaves(name: String, handler: Handler[AsyncResult[JsonArray]]): RedisSentinel

    Show a list of slaves for this master, and their state * @param name master name

    Show a list of slaves for this master, and their state * @param name master name

    handler

      Handler for the result of this call

35.  def slavesFuture(name: String): Future[JsonArray]

    Like slaves but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

36.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
37.  def toString(): String
    Definition Classes
      AnyRef → Any
38.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
39.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
40.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @native() @throws( ... )

### Inherited from AnyRef

### Inherited from Any

### Ungrouped