class ThriftRouter extends BaseThriftRouter[ThriftRouter]
Builds a com.twitter.finagle.thrift.ThriftService.
- Annotations
- @Singleton()
- Note
this is only intended for use with generated Scala code. Users of generated Java code are encouraged to use the JavaThriftRouter.
- Alphabetic
- By Inheritance
- ThriftRouter
- BaseThriftRouter
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ThriftRouter(injector: Injector, exceptionManager: ExceptionManager, stackTransformer: StackTransformer, serverName: String)
- Annotations
- @Inject()
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 add(controller: Controller): Unit
Add controller used for all requests.
Add controller used for all requests. ThriftRouter only supports a single controller, so
add
may only be called once.- See also
the user guide
- def add[C <: Controller](implicit arg0: Manifest[C]): Unit
Instantiate and add thrift controller used for all requests.
Instantiate and add thrift controller used for all requests.
ThriftRouter only supports a single controller, so
add
may only be called once.- See also
the user guide
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assertController[T](f: => T): T
Ensures that configuring a controller happens only once and provides a consistent message
Ensures that configuring a controller happens only once and provides a consistent message
- Attributes
- protected
- Definition Classes
- BaseThriftRouter
- 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 exceptionMapper[T <: Throwable](clazz: Class[_ <: ExceptionMapper[T, _]]): ThriftRouter
Add exception mapper used for the corresponding exceptions.
Add exception mapper used for the corresponding exceptions.
- Definition Classes
- BaseThriftRouter
- See also
the user guide
- def exceptionMapper[T <: Throwable](mapper: ExceptionMapper[T, _])(implicit arg0: Manifest[T]): ThriftRouter
Add exception mapper used for the corresponding exceptions.
Add exception mapper used for the corresponding exceptions.
- Definition Classes
- BaseThriftRouter
- See also
the user guide
- def exceptionMapper[T <: ExceptionMapper[_, _]](implicit arg0: Manifest[T]): ThriftRouter
Add exception mapper used for the corresponding exceptions.
Add exception mapper used for the corresponding exceptions.
- Definition Classes
- BaseThriftRouter
- See also
the user guide
- def filter(filter: TypeAgnostic): ThriftRouter
Add global filter used for all requests.
Add global filter used for all requests.
The filter is appended after other
Filters
that have already been added viafilter
.- See also
The user guide
- def filter(clazz: Class[_ <: TypeAgnostic]): ThriftRouter
Add global filter used for all requests.
Add global filter used for all requests.
The filter is appended after other
Filters
that have already been added viafilter
.- See also
The user guide
- def filter[FilterType <: TypeAgnostic, Ann <: Annotation](implicit arg0: Manifest[FilterType], arg1: Manifest[Ann]): ThriftRouter
Add global filter used for all requests that are annotated with Annotation Type.
Add global filter used for all requests that are annotated with Annotation Type.
The filter is appended after other
Filters
that have already been added viafilter
.- See also
The user guide
- def filter[FilterType <: TypeAgnostic](implicit arg0: Manifest[FilterType]): ThriftRouter
Add global filter used for all requests.
Add global filter used for all requests.
The filter is appended after other
Filters
that have already been added viafilter
.- See also
The user guide
- 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 getServiceClazzStackParam: Option[Class[_]]
Returns the currently set
ServiceClassStackParam
value.Returns the currently set
ServiceClassStackParam
value.- Definition Classes
- BaseThriftRouter
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isConfigured: Boolean
Returns true is this router is configured
Returns true is this router is configured
- Definition Classes
- BaseThriftRouter
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val libraryRegistry: LibraryRegistry
- Attributes
- protected
- Definition Classes
- BaseThriftRouter
- 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 postConfig[T](what: String)(f: => T): T
Ensure that
f
is only run after a controller has been configuredEnsure that
f
is only run after a controller has been configured- Attributes
- protected
- Definition Classes
- BaseThriftRouter
- def preConfig[T](what: String)(f: => T): T
Ensure that
f
is only run prior to configuring a controller and setting up a thrift service.Ensure that
f
is only run prior to configuring a controller and setting up a thrift service.- Attributes
- protected
- Definition Classes
- BaseThriftRouter
- def registerGlobalFilter(registry: LibraryRegistry, thriftFilter: AnyRef): Unit
- Attributes
- protected[this]
- Definition Classes
- BaseThriftRouter
- def registerService(registry: LibraryRegistry, serviceName: String): Unit
- Attributes
- protected[this]
- Definition Classes
- BaseThriftRouter
- var serviceClazzStackParam: Option[Class[_]]
- Attributes
- protected[this]
- Definition Classes
- BaseThriftRouter
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- lazy val thriftMethodRegistrar: Registrar
- Attributes
- protected
- Definition Classes
- BaseThriftRouter
- def thriftService: ThriftService
- 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()