object ThriftServicePerEndpoint
Construct Service interface for a Thrift method.
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.
2. Using a method interface, i.e. a collection of methods returning Futures.
Example: for a Thrift service IDL:
service Logger {
string log(1: string message, 2: i32 logLevel);
i32 getLogSize();
}the Service interface, or ServicePerEndpoint, is
trait LoggerServicePerEndpoint { val log: com.twitter.finagle.Service[Logger.Log.Args, Logger.Log.SuccessType] val getLogSize: com.twitter.finagle.Service[Logger.GetLogSize.Args, Logger.GetLogSize.SuccessType] }
and the method interface, or MethodPerEndpoint, is
trait Logger[Future] { def log(message: String, logLevel: Int): Future[String] def getLogSize(): Future[Int] }
Service interfaces can be modified and composed with Finagle Filters.
- Alphabetic
- By Inheritance
- ThriftServicePerEndpoint
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- def apply(method: ThriftMethod, thriftService: Service[ThriftClientRequest, Array[Byte]], pf: TProtocolFactory, stats: StatsReceiver): Service[Args, SuccessType]
-
def
apply(method: ThriftMethod, thriftService: Service[ThriftClientRequest, Array[Byte]], clientParam: RichClientParam): Service[Args, SuccessType]
Build a Service from a given Thrift method.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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()
- def resultFilter(method: ThriftMethod): Filter[Args, SuccessType, Args, Result]
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()