io.getclump

ClumpSource

Related Doc: package getclump

class ClumpSource[T, U] extends AnyRef

Sources represent the remote systems' batched interfaces.

There are multiple create a ClumpSource: - Clump.source with a function that returns a Map - Clump.source with a function that returns a collection and another function that maps values to keys - Clump.sourceTry with a function that returns a Map where each entry can be Success or Failure - Clump.sourceZip with a function that returns a List with the same order and size as the input list - Clump.sourceSingle with a function that accepts a single id and returns a single resource

Once created, a Clump can be retrieved from an id using the get method.

See Clump

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ClumpSource
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. val _maxRetries: PartialFunction[Throwable, Int]

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef → Any
  9. val fetch: (List[T]) ⇒ Future[Map[T, Try[U]]]

  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def get(input: T): Clump[U]

    Get a single value from a clump source

  12. def get[C[_] <: Iterable[_]](inputs: C[T])(implicit cbf: CanBuildFrom[Nothing, U, C[U]]): Clump[C[U]]

    Get a list of values from a clump source

  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

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

    Definition Classes
    Any
  16. def maxBatchSize(size: Int): ClumpSource[T, U]

    Set the maximum batch size for fetching values from this clump source

  17. val maxBatchSize: Int

  18. def maxRetries(retries: PartialFunction[Throwable, Int]): ClumpSource[T, U]

    Set the maximum number of retries for fetching values from this clump source in case of failure.

    Set the maximum number of retries for fetching values from this clump source in case of failure. Different number of retries can be set for different types of exceptions.

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

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped