trait ThriftMethod extends ThriftMethodIface
Metadata for a method for a Thrift service.
Comments below will use this example IDL:
service ExampleService {
i32 boringMethod(
1: i32 input1,
2: string input2
)
}- Alphabetic
- By Inheritance
- ThriftMethod
- ThriftMethodIface
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract type Args <: ThriftStruct
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
- abstract type FunctionType
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. - abstract type ReqRepFunctionType
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. - abstract type ReqRepServicePerEndpointServiceType
The type of this method, as a Finagle
Servicefromscrooge.Request[Args]toscrooge.Response[SuccessType].The type of this method, as a Finagle
Servicefromscrooge.Request[Args]toscrooge.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. - abstract type Result <: ThriftResponse[SuccessType] with ThriftStruct
Contains success or thrift application exceptions
- abstract type ServicePerEndpointServiceType
The type of this method, as a Finagle
ServicefromArgstoSuccessType.The type of this method, as a Finagle
ServicefromArgstoSuccessType.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. - abstract type SuccessType
The successful return type
The successful return type
For Scala generated code this will be the response's type. Roughly:
type SuccessType = Int
Abstract Value Members
- abstract def annotations: Map[String, String]
Thrift annotations (user-defined key-value metadata) on the method
- abstract def argsCodec: ThriftStructCodec3[Args]
Codec for the request args
- abstract def name: String
Thrift method name
Thrift method name
- Definition Classes
- ThriftMethodIface
- abstract def oneway: Boolean
True for oneway thrift methods
- abstract def responseCodec: ThriftStructCodec3[Result]
Codec for the response
- abstract def serviceName: String
Thrift service name.
Thrift service name. A thrift service is a list of methods.
- Definition Classes
- ThriftMethodIface
- abstract def toReqRepServicePerEndpointService(f: ReqRepFunctionType): ReqRepServicePerEndpointServiceType
Convert a function implementation of this method into a ReqRepServicePerEndpoint Finagle
Serviceimplementation returningscrooge.Response[SuccessType].Convert a function implementation of this method into a ReqRepServicePerEndpoint Finagle
Serviceimplementation returningscrooge.Response[SuccessType].For Scala generated code without Finagle bindings, this will not implemented.
- abstract def toServicePerEndpointService(f: FunctionType): ServicePerEndpointServiceType
Convert a function implementation of this method into a ServicePerEndpoint Finagle
Serviceimplementation returningSuccessType.Convert a function implementation of this method into a ServicePerEndpoint Finagle
Serviceimplementation returningSuccessType.For Scala generated code without Finagle bindings, this will not implemented.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()