Class

com.twitter.finatra.thrift.Controller

MethodDSL

Related Doc: package Controller

Permalink

class MethodDSL[M <: ThriftMethod] extends AnyRef

The MethodDSL child class is responsible for capturing the state of the applied filter chains and implementation.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MethodDSL
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MethodDSL(m: M, chain: TypeAgnostic)

    Permalink

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def filtered(f: TypeAgnostic): MethodDSL[M]

    Permalink

    Add a filter to the implementation

  9. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. val m: M

    Permalink
  14. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def withFn(fn: (Request[M.Args]) ⇒ Future[Response[M.SuccessType]]): Unit

    Permalink

    Provide an implementation for this method in the form of a function of Request => Future[Response].

    Provide an implementation for this method in the form of a function of Request => Future[Response].

    fn

    the function to use

    Note

    The given function will be invoked for each request.

  23. def withService(svc: Service[Request[M.Args], Response[M.SuccessType]]): Unit

    Permalink

    Provide an implementation for this method in the form of a com.twitter.finagle.Service

    Provide an implementation for this method in the form of a com.twitter.finagle.Service

    svc

    the service to use as an implementation

    Note

    The service will be called for each request.

Deprecated Value Members

  1. def apply(f: (M.Args) ⇒ Future[M.SuccessType]): ThriftMethodService[M.Args, M.SuccessType]

    Permalink

    Provide an implementation for this method in the form a function of Args => Future[SuccessType] This exists for legacy compatibility reasons.

    Provide an implementation for this method in the form a function of Args => Future[SuccessType] This exists for legacy compatibility reasons. Users should instead use Request/Response based functionality.

    f

    the implementation

    returns

    a ThriftMethodService, which is used in legacy controller configurations

    Annotations
    @deprecated
    Deprecated

    (Since version 2018-12-20) Use Request/Response based functionality

    Note

    The implementation given will be invoked for each request.

Inherited from AnyRef

Inherited from Any

Ungrouped