abstract
class
Service[-Req, +Rep] extends (Req) ⇒ Future[Rep] with Closable
Instance Constructors
-
new
Service()
Abstract Value Members
-
abstract
def
apply(request: Req): Future[Rep]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
andThen[A](g: (Future[Rep]) ⇒ A): (Req) ⇒ A
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
final
def
close(): Future[Unit]
-
def
compose[A](g: (A) ⇒ Req): (A) ⇒ Future[Rep]
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isAvailable: Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
def
map[Req1](f: (Req1) ⇒ Req): Service[Req1, Rep]
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from (Req) ⇒ Future[Rep]
A
Service
is an asynchronous function from aRequest
to aFuture[Response]
.It is the basic unit of an RPC interface.
Service.mk for a convenient way to create new instances.
The user guide for details and examples.