Trait

com.gu.contentapi.client

RetryableContentApiClient

Related Doc: package client

Permalink

trait RetryableContentApiClient extends ContentApiClient

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

Abstract Value Members

  1. abstract def apiKey: String

    Permalink

    Your API key

    Your API key

    Definition Classes
    ContentApiClient
  2. abstract def backoffStrategy: BackoffStrategy

    Permalink
  3. implicit abstract def executor: ScheduledExecutor

    Permalink

Concrete 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. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def get(url: String, headers: Map[String, String])(implicit context: ExecutionContext): Future[HttpResponse]

    Permalink

    Queries CAPI.

    Queries CAPI.

    This method must make a GET request to the CAPI endpoint and streamline the response into an HttpResponse object.

    It is a design decision that this method is virtual. Any implementation would have to rely on a specific technology stack, e.g. an HTTP client. Fundamentally, the responsibility of making these implementation choices should be pushed out to the end of the world.

    url

    The CAPI REST url

    headers

    Custom HTTP parameters

    returns

    an HttpResponse holding the response in the form of an array of bytes

    Definition Classes
    RetryableContentApiClientContentApiClient
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def getResponse[Q <: ContentApiQuery](query: Q)(implicit decoder: Decoder[Q], context: ExecutionContext): Future[Response]

    Permalink

    Runs the query against the Content API.

    Runs the query against the Content API.

    Q

    the type of a Content API query

    query

    the query

    returns

    a future resolving to an unmarshalled response

    Definition Classes
    ContentApiClient
  11. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  16. def paginate[Q <: PaginatedApiQuery[Q], R, M](query: Q)(f: (R) ⇒ M)(implicit decoder: Aux[Q, R], pager: PaginatedApiResponse[R], context: ExecutionContext): Future[List[M]]

    Permalink

    Unfolds a query to its results, page by page

    Unfolds a query to its results, page by page

    Q

    the type of a Content API query with pagination parameters

    R

    the type of response expected for Q

    query

    the initial query

    f

    a result-processing function

    returns

    a future of a list of result-processed results

    Definition Classes
    ContentApiClient
  17. def paginateAccum[Q <: PaginatedApiQuery[Q], R, M](query: Q)(f: (R) ⇒ M, g: (M, M) ⇒ M)(implicit decoder: Aux[Q, R], pager: PaginatedApiResponse[R], context: ExecutionContext): Future[M]

    Permalink

    Unfolds a query by accumulating its results

    Unfolds a query by accumulating its results

    Q

    the type of a Content API query with pagination parameters

    R

    the type of response expected for Q

    query

    the initial query

    f

    a result-processing function

    returns

    a future of an accumulated value

    Definition Classes
    ContentApiClient
  18. def paginateFold[Q <: PaginatedApiQuery[Q], R, M](query: Q)(m: M)(f: (R, M) ⇒ M)(implicit decoder: Aux[Q, R], decoderNext: Aux[NextQuery[Q], R], pager: PaginatedApiResponse[R], context: ExecutionContext): Future[M]

    Permalink

    Unfolds a query by accumulating its results

    Unfolds a query by accumulating its results

    Q

    the type of a Content API query with pagination parameters

    R

    the type of response expected for Q

    query

    the initial query

    f

    a result-processing function

    returns

    a future of an accumulated value

    Definition Classes
    ContentApiClient
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def targetUrl: String

    Permalink

    The url of the CAPI endpoint

    The url of the CAPI endpoint

    Definition Classes
    ContentApiClient
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. def url(contentApiQuery: ContentApiQuery): String

    Permalink
    Definition Classes
    ContentApiClient
  23. def userAgent: String

    Permalink

    The user-agent identifier

    The user-agent identifier

    Definition Classes
    ContentApiClient
  24. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from ContentApiClient

Inherited from AnyRef

Inherited from Any

Ungrouped