Packages

class ThriftRouter extends BaseThriftRouter[ThriftRouter]

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], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ThriftRouter
  2. BaseThriftRouter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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

  5. 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

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. 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
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. 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

  12. 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

  13. 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

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

    See also

    The user guide

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

    See also

    The user guide

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

    See also

    The user guide

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

    See also

    The user guide

  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def getServiceClazzStackParam: Option[Class[_]]

    Returns the currently set ServiceClassStackParam value.

    Returns the currently set ServiceClassStackParam value.

    Definition Classes
    BaseThriftRouter
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def isConfigured: Boolean

    Returns true is this router is configured

    Returns true is this router is configured

    Definition Classes
    BaseThriftRouter
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. lazy val libraryRegistry: LibraryRegistry
    Attributes
    protected
    Definition Classes
    BaseThriftRouter
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def postConfig[T](what: String)(f: => T): T

    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
  29. 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
  30. def registerGlobalFilter(registry: LibraryRegistry, thriftFilter: AnyRef): Unit
    Attributes
    protected[this]
    Definition Classes
    BaseThriftRouter
  31. def registerService(registry: LibraryRegistry, serviceName: String): Unit
    Attributes
    protected[this]
    Definition Classes
    BaseThriftRouter
  32. var serviceClazzStackParam: Option[Class[_]]
    Attributes
    protected[this]
    Definition Classes
    BaseThriftRouter
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. lazy val thriftMethodRegistrar: Registrar
    Attributes
    protected
    Definition Classes
    BaseThriftRouter
  35. def thriftService: ThriftService
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from BaseThriftRouter[ThriftRouter]

Inherited from AnyRef

Inherited from Any

Ungrouped