Build a Service[scrooge.Request[method.Args],scrooge.Response[method.SuccessType]]
from a given ThriftMethod.
Transform a scrooge.Response[A]
to a Future[A]
.
Transform a scrooge.Response[A]
to a Future[A]
.
scrooge.Response to transform.
a Future[A]
of the result or exception.
Construct
Service[scrooge.Request[method.Args],scrooge.Response[method.SuccessType]]
interface for a ThriftMethod.There are two ways to use a Scrooge-generated Thrift
Service
with Finagle:1. Using a Service interface, i.e. a collection of Finagle
Services
, e.g., ReqRepServicePerEndpoint.2. Using a method interface, i.e. a collection of methods returning
Futures
, e.g, MethodPerEndpoint.Example: for a Thrift service IDL:
the
Service
interface, orReqRepServicePerEndpoint
, isand the method interface, or
MethodPerEndpoint
, isReqRepServicePerEndpoints can be modified and composed with Finagle
Filters
.