Class

com.github.fsanaulla.chronicler.core.components

ResponseHandler

Related Doc: package components

Permalink

class ResponseHandler[G[_], R] extends AnyRef

Response handling functionality, it's provide method's that generalize response handle flow, for every backend implementation

R

- Backend HTTP response type, for example for Akka HTTP backend - HttpResponse

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResponseHandler
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResponseHandler(jsonHandler: JsonHandler[G, R])(implicit F: Functor[G], A: Apply[G])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. final def bulkQueryResultJson(response: R): G[ErrorOr[Array[Array[JArray]]]]

    Permalink

    Method for handling HTtp responses with non empty body, that contains multiple response.

    Method for handling HTtp responses with non empty body, that contains multiple response.

    deserialize to Seq[JArray]

    response

    - backend response value

    returns

    - Query result with multiple response values

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. final def errorHandler(response: R): G[Throwable]

    Permalink

    * Handler error codes by it's value

    * Handler error codes by it's value

    response

    - response for extracting error message

    returns

    - InfluxException wrraped in container type

  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def groupedResultJson(response: R): G[ErrorOr[Array[(Tags, Values)]]]

    Permalink

    Handling HTTP response with GROUP BY clause in the query

    Handling HTTP response with GROUP BY clause in the query

    response

    - backend response

    returns

    - grouped result

  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def isPingCode(code: Int): Boolean

    Permalink

    * Check for ping response status code

    * Check for ping response status code

    code

    - response code

  16. final def isSuccessful(code: Int): Boolean

    Permalink

    * Check response for success

    * Check response for success

    code

    - response code

    returns

    - is it success

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def pingResult(response: R): G[ErrorOr[InfluxDBInfo]]

    Permalink

    Handling ping response

    Handling ping response

    Since

    0.5.1

  21. final def queryResult[A](response: R)(implicit arg0: ClassTag[A], rd: InfluxReader[A]): G[ErrorOr[Array[A]]]

    Permalink

    Extract HTTP response body, and transform it to A

    Extract HTTP response body, and transform it to A

    A

    - Deserializer entity type

    response

    backend response

    returns

    - Query result in future container

  22. final def queryResultJson(response: R): G[ErrorOr[Array[JArray]]]

    Permalink

    Handling HTTP responses with on fly body deserialization into JArray value

    Handling HTTP responses with on fly body deserialization into JArray value

    response

    - backend response value

    returns

    - Query result of JArray in future container

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. final def toComplexQueryResult[A, B](response: R, f: (String, Array[A]) ⇒ B)(implicit arg0: ClassTag[A], arg1: InfluxReader[A], arg2: ClassTag[B]): G[ErrorOr[Array[B]]]

    Permalink

    Method for handling Info based HTTP responses, with possibility for future deserialization.

    Method for handling Info based HTTP responses, with possibility for future deserialization.

    A

    - entity for creating full Info object

    B

    - info object

    response

    - backend response value

    f

    - function that transform into value of type [B]

    returns

    - Query result of [B] in future container

  25. def toCqQueryResult(response: R)(implicit reader: InfluxReader[ContinuousQuery]): G[ErrorOr[Array[ContinuousQueryInfo]]]

    Permalink

    * Get CQ information from Response

    * Get CQ information from Response

    response

    - Response object

    reader

    - implicit influx reader, predefined

    returns

    - CQ results

  26. final def toShardGroupQueryResult(response: R)(implicit reader: InfluxReader[ShardGroup]): G[ErrorOr[Array[ShardGroupsInfo]]]

    Permalink

    * Get Shard group info information from Response

    * Get Shard group info information from Response

    response

    - Response object

    reader

    - implicit influx reader, predefined

    returns

    - Shard group info results

  27. final def toShardQueryResult(response: R)(implicit reader: InfluxReader[Shard]): G[ErrorOr[Array[ShardInfo]]]

    Permalink

    * Get Shard info information from Response

    * Get Shard info information from Response

    response

    - Response object

    reader

    - implicit influx reader, predefined

    returns

    - Shard info results

  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def toSubscriptionQueryResult(response: R)(implicit reader: InfluxReader[Subscription]): G[ErrorOr[Array[SubscriptionInfo]]]

    Permalink

    * Get Subscription info information from Response

    * Get Subscription info information from Response

    response

    - Response object

    reader

    - implicit influx reader, predefined

    returns

    - Subscription info results

  30. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def writeResult(response: R): G[ErrorOr[ResponseCode]]

    Permalink

    Method for handling HTTP responses with empty body

    Method for handling HTTP responses with empty body

    response

    - backend response value

    returns

    - Result in future container

Inherited from AnyRef

Inherited from Any

Ungrouped