Class

com.twitter.finatra.thrift.routing

JavaThriftRouter

Related Doc: package routing

Permalink

class JavaThriftRouter extends BaseThriftRouter[JavaThriftRouter]

Builds a com.twitter.finagle.Service.

A ThriftRouter specifically for use with generated Java code. Users of generated Scala code should use the com.twitter.finatra.thrift.routing.ThriftRouter directly.

Annotations
@Singleton()
Note

routing over Java generated code DOES NOT support per-method stats since the generated Java code does not yet support "service-per-method".

See also

com.twitter.finatra.thrift.routing.BaseThriftRouter

com.twitter.finatra.thrift.routing.ThriftRouter

Linear Supertypes
BaseThriftRouter[JavaThriftRouter], Logging, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JavaThriftRouter
  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 JavaThriftRouter(injector: Injector, exceptionManager: ExceptionManager)

    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: AbstractThriftService, protocolFactory: TProtocolFactory): JavaThriftRouter

    Permalink

    Add controller used for all requests for usage from Java.

    Add controller used for all requests for usage from Java. The ThriftRouter only supports a single controller, so add may only be called once.

    Note

    We do not apply filters per-method but instead all filters are applied across the service. thus "per-method" metrics will be scoped to the controller name (Class#getSimpleName).

    See also

    the user guide

  5. def add(controller: AbstractThriftService): JavaThriftRouter

    Permalink

    Add controller used for all requests for usage from Java.

    Add controller used for all requests for usage from Java. The ThriftRouter only supports a single controller, so add may only be called once.

    See also

    the user guide

  6. def add(controller: Class[_ <: AbstractThriftService], protocolFactory: TProtocolFactory): JavaThriftRouter

    Permalink

    Add controller used for all requests for usage from Java.

    Add controller used for all requests for usage from Java. The ThriftRouter only supports a single controller, so add may only be called once.

    Note

    We do not apply filters per-method but instead all filters are applied across the service. thus "per-method" metrics will be scoped to the controller name (Class#getSimpleName).

    See also

    the user guide

  7. def add(controller: Class[_ <: AbstractThriftService]): JavaThriftRouter

    Permalink

    Add controller used for all requests for usage from Java.

    Add controller used for all requests for usage from Java. The ThriftRouter only supports a single controller, so add may only be called once.

    See also

    the user guide

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. 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
  10. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    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 exceptionMapper[T <: Throwable](mapper: ExceptionMapper[T, _])(implicit arg0: Manifest[T]): JavaThriftRouter

    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

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

    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

  27. def filter(filter: TypeAgnostic): JavaThriftRouter

    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

  28. def filter(clazz: Class[_ <: TypeAgnostic]): JavaThriftRouter

    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 filter[FilterType <: TypeAgnostic, Ann <: Annotation](implicit arg0: Manifest[FilterType], arg1: Manifest[Ann]): JavaThriftRouter

    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

  30. def filter[FilterType <: TypeAgnostic](implicit arg0: Manifest[FilterType]): JavaThriftRouter

    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

  31. def finalize(): Unit

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Attributes
    protected[this]
    Definition Classes
    BaseThriftRouter
  60. def service: Service[Array[Byte], Array[Byte]]

    Permalink
  61. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  62. lazy val thriftMethodRegistrar: Registrar

    Permalink
    Attributes
    protected
    Definition Classes
    BaseThriftRouter
  63. def time[T](formatStr: String)(func: ⇒ T): T

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging

Inherited from BaseThriftRouter[JavaThriftRouter]

Inherited from Logging

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped