Packages

object Service

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Service
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def const[Rep](rep: Future[Rep]): Service[Any, Rep]

    A service with a constant reply.

    A service with a constant reply. Always available; never closable.

    See also

    constant for a Java compatible API.

  7. def constant[Rep](rep: Future[Rep]): Service[Any, Rep]

    Java compatible API for const as const is a reserved word in Java

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def mk[Req, Rep](f: (Req) ⇒ Future[Rep]): Service[Req, Rep]

    A convenience method for creating Services from a Function1 of Req to a Future[Rep].

  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def pending[Req, Rep](svc: Future[Service[Req, Rep]]): Service[Req, Rep]

    A future of a service is a pending service.

    A future of a service is a pending service.

    Requests wait behind resolution of the future. If resolution fails, all requests to this service reflect the same failure. While resolution is pending, the status of the service is Busy, otherwise it's whatever the underlying service reports.

    Closing the service is uninterruptible and instant: failing all subsequent requests, and interrupting those in flight. Close returns Future.Done always, independent of the underlying service.

    val svc = Service.pending(Future.never)
    val rep = svc(1)
    val closed = svc.close()
    
    Await.result(closed) // Future.Done
    Await.result(rep)    // Exception: Service is closed

    Note: Because queued requests rely on queue order of future callbacks, it's not guaranteed that requests to the underlying service will be received in the same order they were sent.

  19. def rescue[Req, Rep](service: Service[Req, Rep]): ServiceProxy[Req, Rep]

    Wrap the given service such that any synchronously thrown NonFatal exceptions are lifted into Future.exceptions.

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

Inherited from AnyRef

Inherited from Any

Ungrouped