vertx-redis-client-scala_2.12 3.7.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 client
  Definition Classes
    redis
- Command
- Redis
- RedisAPI
- RedisOptions
- Request
- Response

c

io.vertx.scala.redis.client

# Response 

###
Companion object Response

#### class Response extends AnyRef

The response received from the REDIS server. Redis responses can have several representations:

- simple string - C string
- integer - 64bit integer value
- bulk - byte array
- multi - list

Due to the dynamic nature the response object will try to cast the received response to the desired type. A special case should be noted that multi responses are also handled by the response object as it implements the iterable interface. So in this case constructs like for loops on the response will give you access to the underlying elements.

Linear Supertypes
AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. Response
2. AnyRef
3. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new Response(_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 clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @native() @throws( ... )
7.  final def eq(arg0: AnyRef): Boolean
   Definition Classes
     AnyRef
8.  def equals(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
9.  def finalize(): Unit
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @throws( classOf[java.lang.Throwable] )
10.  def get(key: String): Response

    Get this multi response value at a string key.

    Get this multi response value at a string key. Note that REDIS does not support strings as keys but by convention it encodes hashes in lists where index i is the key, and index i+1 is the value. * @param key the required key.

    returns

      Response value.

11.  def get(index: Int): Response

    Get this multi response value at a numerical index.

    Get this multi response value at a numerical index. * @param index the required index.

    returns

      Response value.

12.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
13.  def getKeys(): Set[String]

    Get this multi response keys from a hash.

    Get this multi response keys from a hash. Note that REDIS does not support strings as keys but by convention it encodes hashes in lists where index i is the key, and index i+1 is the value. * @return the set of keys.

14.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
15.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
16.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
17.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
18.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
19.  def size(): Int

    Get this size of this multi response.

    Get this size of this multi response. * @return the size of the multi.

20.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
21.  def toBoolean(): Boolean

    Get this response as a Boolean.

    Get this response as a Boolean. * @return boolean value.

22.  def toBuffer(): Buffer

    Get this response as Buffer.

    Get this response as Buffer. * @return buffer value.

23.  def toByte(): Byte

    Get this response as a Byte.

    Get this response as a Byte. * @return byte value.

24.  def toInteger(): Int

    Get this response as a Integer.

    Get this response as a Integer. * @return int value.

25.  def toLong(): Long

    Get this response as a Long.

    Get this response as a Long. * @return long value.

26.  def toShort(): Short

    Get this response as a Short.

    Get this response as a Short. * @return short value.

27.  def toString(): String

    Get this response as a String.

    Get this response as a String. * @return string value

    Definition Classes
      Response → AnyRef → Any
28.  def type(): ResponseType

    The response return type.

    The response return type. * @return the type.

29.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
30.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
31.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @native() @throws( ... )

### Inherited from AnyRef

### Inherited from Any

### Ungrouped