abstract class AbstractBackendStub[F[_], P] extends GenericBackend[F, P]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractBackendStub
  2. GenericBackend
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractBackendStub(_monad: MonadError[F], matchers: PartialFunction[GenericRequest[_, _], F[Response[_]]], fallback: Option[GenericBackend[F, P]])

Type Members

  1. abstract type Self
  2. class WhenRequest extends AnyRef

Abstract Value Members

  1. abstract def withMatchers(matchers: PartialFunction[GenericRequest[_, _], F[Response[_]]]): Self
    Attributes
    protected

Concrete 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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. def close(): F[Unit]

    Close the backend, releasing any resources (such as thread or connection pools) that have been allocated when opening or using the backend.

    Close the backend, releasing any resources (such as thread or connection pools) that have been allocated when opening or using the backend.

    Definition Classes
    AbstractBackendStubGenericBackend
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def monad: MonadError[F]

    A monad instance for the F effect type.

    A monad instance for the F effect type. Allows writing wrapper backends, which map/flatMap over the return value of send.

    Definition Classes
    AbstractBackendStubGenericBackend
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def send[T](request: GenericRequest[T, P with Effect[F]]): F[Response[T]]

    Send the given request.

    Send the given request. Should only be used when implementing new backends, or backend wrappers. Client code should instead use the send methods on the request type, e.g. Request.send.

    Definition Classes
    AbstractBackendStubGenericBackend
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def whenAnyRequest: WhenRequest

    Specify how the stub backend should respond to any request (catch-all).

    Specify how the stub backend should respond to any request (catch-all).

    Note that the stubs are immutable, and each new specification that is added yields a new stub instance.

  23. def whenRequestMatches(p: (GenericRequest[_, _]) ⇒ Boolean): WhenRequest

    Specify how the stub backend should respond to requests matching the given predicate.

    Specify how the stub backend should respond to requests matching the given predicate.

    Note that the stubs are immutable, and each new specification that is added yields a new stub instance.

  24. def whenRequestMatchesPartial(partial: PartialFunction[GenericRequest[_, _], Response[_]]): Self

    Specify how the stub backend should respond to requests using the given partial function.

    Specify how the stub backend should respond to requests using the given partial function.

    Note that the stubs are immutable, and each new specification that is added yields a new stub instance.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from GenericBackend[F, P]

Inherited from AnyRef

Inherited from Any

Ungrouped