Class

com.twitter.finatra.thrift.routing

ThriftRouter

Related Doc: package routing

Permalink

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.

Linear Supertypes
BaseThriftRouter[ThriftRouter], Logging, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ThriftRouter
  2. BaseThriftRouter
  3. Logging
  4. Logging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ThriftRouter(injector: Injector, exceptionManager: ExceptionManager, stackTransformer: StackTransformer, serverName: String)

    Permalink
    Annotations
    @Inject()

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def add(controller: Controller): Unit

    Permalink

    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

  5. def add[C <: Controller](implicit arg0: Manifest[C]): Unit

    Permalink

    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

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def assertController[T](f: ⇒ T): T

    Permalink

    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
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def debug(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  10. def debug(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  11. def debug(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  12. def debug(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  13. def debugFutureResult[T](msg: String)(func: ⇒ Future[T]): Future[T]

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  14. def debugResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def error(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  18. def error(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  19. def error(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  20. def error(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  21. def errorResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  22. def exceptionMapper[T <: Throwable](clazz: Class[_ <: ExceptionMapper[T, _]]): ThriftRouter

    Permalink

    Add exception mapper used for the corresponding exceptions.

    Add exception mapper used for the corresponding exceptions.

    Definition Classes
    BaseThriftRouter
    See also

    the user guide

  23. def exceptionMapper[T <: Throwable](mapper: ExceptionMapper[T, _])(implicit arg0: Manifest[T]): ThriftRouter

    Permalink

    Add exception mapper used for the corresponding exceptions.

    Add exception mapper used for the corresponding exceptions.

    Definition Classes
    BaseThriftRouter
    See also

    the user guide

  24. def exceptionMapper[T <: ExceptionMapper[_, _]](implicit arg0: Manifest[T]): ThriftRouter

    Permalink

    Add exception mapper used for the corresponding exceptions.

    Add exception mapper used for the corresponding exceptions.

    Definition Classes
    BaseThriftRouter
    See also

    the user guide

  25. def filter(filter: TypeAgnostic): ThriftRouter

    Permalink

    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 via filter.

    See also

    The user guide

  26. def filter(clazz: Class[_ <: TypeAgnostic]): ThriftRouter

    Permalink

    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 via filter.

    See also

    The user guide

  27. def filter[FilterType <: TypeAgnostic, Ann <: Annotation](implicit arg0: Manifest[FilterType], arg1: Manifest[Ann]): ThriftRouter

    Permalink

    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 via filter.

    See also

    The user guide

  28. def filter[FilterType <: TypeAgnostic](implicit arg0: Manifest[FilterType]): ThriftRouter

    Permalink

    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 via filter.

    See also

    The user guide

  29. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  31. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  32. def info(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  33. def info(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  34. def info(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  35. def info(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  36. def infoResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  37. def isConfigured: Boolean

    Permalink
    Definition Classes
    BaseThriftRouter
  38. def isDebugEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  39. def isDebugEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  40. def isErrorEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  41. def isErrorEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  42. def isInfoEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  43. def isInfoEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  44. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  45. def isTraceEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  46. def isTraceEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  47. def isWarnEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  48. def isWarnEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  49. lazy val libraryRegistry: LibraryRegistry

    Permalink
    Attributes
    protected
    Definition Classes
    BaseThriftRouter
  50. final def logger: Logger

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  51. final def loggerName: String

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  52. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  53. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  54. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  55. def postConfig[T](what: String)(f: ⇒ T): T

    Permalink

    Ensure that f is only run after a controller has been configured

    Ensure that f is only run after a controller has been configured

    Attributes
    protected
    Definition Classes
    BaseThriftRouter
  56. def preConfig[T](what: String)(f: ⇒ T): T

    Permalink

    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
  57. def registerGlobalFilter(thriftFilter: AnyRef, registry: LibraryRegistry): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    BaseThriftRouter
  58. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  59. lazy val thriftMethodRegistrar: Registrar

    Permalink
    Attributes
    protected
    Definition Classes
    BaseThriftRouter
  60. def thriftService: ThriftService

    Permalink
  61. def time[T](formatStr: String)(func: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  62. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  63. def trace(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  64. def trace(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  65. def trace(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  66. def trace(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  67. def traceResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  68. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. def warn(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  72. def warn(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  73. def warn(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  74. def warn(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  75. def warnResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging

Inherited from BaseThriftRouter[ThriftRouter]

Inherited from Logging

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped