A struct wrapping method arguments
A struct wrapping method arguments
For Scala generated code this will be a wrapper around all of the inputs. Roughly:
class Args(input1: Int, input2: String) extends ThriftStruct
The type of this method, as a function.
The type of this method, as a function.
For Scala generated code with Finagle bindings this will be roughly:
Function1[Args, Future[Int]]
For Scala generated code without Finagle bindings, this will be Nothing
.
The type of this method, as a function.
The type of this method, as a function.
For Scala generated code with Finagle bindings this will be roughly:
Function1[scrooge.Request[Args], Future[scrooge.Response[Int]]]
For Scala generated code without Finagle bindings, this will be Nothing
.
The type of this method, as a Finagle Service
from scrooge.Request[Args]
to
scrooge.Response[SuccessType]
.
The type of this method, as a Finagle Service
from scrooge.Request[Args]
to
scrooge.Response[SuccessType]
.
For Scala generated code with Finagle bindings this will be roughly:
Service[scrooge.Request[Args], scrooge.Response[SuccessType]]
.
For Scala generated code without Finagle bindings, this will be Nothing
.
Contains success or thrift application exceptions
The type of this method, as a Finagle Service
from Args
to
SuccessType
.
The type of this method, as a Finagle Service
from Args
to
SuccessType
.
For Scala generated code with Finagle bindings this will be roughly:
Service[Args, SuccessType]
.
For Scala generated code without Finagle bindings, this will be Nothing
.
The successful return type
The successful return type
For Scala generated code this will be the response's type. Roughly:
type SuccessType = Int
The type of this method, as a Finagle Service
from Args
to
SuccessType
.
The type of this method, as a Finagle Service
from Args
to
SuccessType
.
For Scala generated code with Finagle bindings this will be roughly:
Service[Args, SuccessType]
.
For Scala generated code without Finagle bindings, this will be Nothing
.
(Since version 2017-12-18) Use ServicePerEndpointServiceType
Thrift annotations (user-defined key-value metadata) on the method
Codec for the request args
Thrift method name
True for oneway thrift methods
Codec for the response
Thrift service name.
Thrift service name. A thrift service is a list of methods.
Convert a function implementation of this method into a
ReqRepServicePerEndpoint Finagle Service
implementation returning
scrooge.Response[SuccessType]
.
Convert a function implementation of this method into a
ReqRepServicePerEndpoint Finagle Service
implementation returning
scrooge.Response[SuccessType]
.
For Scala generated code without Finagle bindings, this will not implemented.
Convert a function implementation of this method into a
ServicePerEndpoint Finagle Service
implementation returning SuccessType
.
Convert a function implementation of this method into a
ServicePerEndpoint Finagle Service
implementation returning SuccessType
.
For Scala generated code without Finagle bindings, this will not implemented.
Convert a function implementation of this method into a
ServiceIface Service
implementation returning SuccessType
.
Convert a function implementation of this method into a
ServiceIface Service
implementation returning SuccessType
.
For Scala generated code without Finagle bindings, this will not implemented.
(Since version 2017-12-18) Use toServicePerEndpointService(f: FunctionType
Metadata for a method for a Thrift service.
Comments below will use this example IDL: