Class

com.twitter.inject.thrift

ThriftMethodBuilder

Related Doc: package thrift

Permalink

final class ThriftMethodBuilder[ServicePerEndpoint <: Filterable[ServicePerEndpoint], Req, Rep] extends AnyRef

Provides ThriftMethod-specific MethodBuilder functionality.

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

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[T <: Filter[Req, Rep, Req, Rep]](implicit arg0: Manifest[T]): ThriftMethodBuilder.this.type

    Permalink

    Install a com.twitter.finagle.Filter.

    Install a com.twitter.finagle.Filter. This filter will be added to the end of the filter chain. That is, this filter will be invoked AFTER any other installed filter on a request Req and thus BEFORE any other installed filter on a response Rep.

    T

    Filter subtype of the filter to instantiate from the injector

    returns

    ThriftMethodBuilder

  9. def filtered(filter: Filter[Req, Rep, Req, Rep]): ThriftMethodBuilder.this.type

    Permalink

    Install a com.twitter.finagle.Filter.

    Install a com.twitter.finagle.Filter. This filter will be added to the end of the filter chain. That is, this filter will be invoked AFTER any other installed filter on a request Req and thus BEFORE any other installed filter on a response Rep.

    filter

    the com.twitter.finagle.Filter to install.

    returns

    ThriftMethodBuilder

  10. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def idempotent(maxExtraLoad: Tunable[Double]): ThriftMethodBuilder.this.type

    Permalink

    See also

    Tunable[Double])

  14. def idempotent(maxExtraLoad: Double): ThriftMethodBuilder.this.type

    Permalink

    See also

    Double)

  15. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  17. def nonIdempotent: ThriftMethodBuilder.this.type

    Permalink

    See also

    com.twitter.finagle.thriftmux.MethodBuilder.nonIdempotent

  18. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  20. def service: Service[Req, Rep]

    Permalink

    Method-specific Filters are 'outside' of TypeAgnostic *and* the MethodBuilder filters

    Method-specific Filters are 'outside' of TypeAgnostic *and* the MethodBuilder filters

    The layer of indirection via the AndThenService is to allow for implementations that may wish to intercept the invocation of the service.

    returns

    a com.twitter.finagle.Service configured from the applied MethodBuilder configuration and filters.

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def withAgnosticFilter[T <: TypeAgnostic](implicit arg0: Manifest[T]): ThriftMethodBuilder.this.type

    Permalink

    Install a com.twitter.finagle.Filter.TypeAgnostic that is agnostic to the ThriftMethod Req/Rep types.

    Install a com.twitter.finagle.Filter.TypeAgnostic that is agnostic to the ThriftMethod Req/Rep types. This allows for use of more general filters that do not care about the ThriftMethod input and output types.

    T

    Filter.TypeAgnostic subtype of the filter to instantiate from the injector

    returns

    ThriftMethodBuilder

  27. def withAgnosticFilter(filter: TypeAgnostic): ThriftMethodBuilder.this.type

    Permalink

    Install a com.twitter.finagle.Filter that is agnostic to the ThriftMethod Req/Rep types.

    Install a com.twitter.finagle.Filter that is agnostic to the ThriftMethod Req/Rep types. This allows for use of more general filters that do not care about the ThriftMethod input and output types.

    filter

    the com.twitter.finagle.Filter.TypeAgnostic to install.

    returns

    ThriftMethodBuilder

  28. def withExceptionFilter[T <: Filter[Req, Rep, Req, Rep]](implicit arg0: Manifest[T]): ThriftMethodBuilder.this.type

    Permalink

    Install a com.twitter.finagle.Filter specific to handling exceptions.

    Install a com.twitter.finagle.Filter specific to handling exceptions. This filter will be correctly positioned in the filter chain near the top of the stack. This filter is generally used to mutate or alter the final response Rep based on a returned exception. E.g., to translate a transport-level exception from Finagle to an application-level exception.

    T

    the type of the filter to instantiate from the injector

    returns

    ThriftMethodBuilder

  29. def withExceptionFilter(filter: Filter[Req, Rep, Req, Rep]): ThriftMethodBuilder.this.type

    Permalink

    Install a com.twitter.finagle.Filter specific to handling exceptions.

    Install a com.twitter.finagle.Filter specific to handling exceptions. This filter will be correctly positioned in the filter chain near the top of the stack. This filter is generally used to mutate or alter the final response Rep based on a returned exception. E.g., to translate a transport-level exception from Finagle to an application-level exception.

    filter

    the com.twitter.finagle.Filter to install.

    returns

    ThriftMethodBuilder

  30. def withRetryDisabled: ThriftMethodBuilder.this.type

    Permalink

    See also

    com.twitter.finagle.thriftmux.MethodBuilder.withRetryDisabled

  31. def withRetryForClassifier(classifier: ResponseClassifier): ThriftMethodBuilder.this.type

    Permalink

    See also

    ResponseClassifier)

  32. def withTimeoutPerRequest(howLong: Tunable[Duration]): ThriftMethodBuilder.this.type

    Permalink

    See also

    Tunable[Duration])

  33. def withTimeoutPerRequest(howLong: Duration): ThriftMethodBuilder.this.type

    Permalink

    See also

    Duration)

  34. def withTimeoutTotal(howLong: Tunable[Duration]): ThriftMethodBuilder.this.type

    Permalink

    See also

    Tunable[Duration])

  35. def withTimeoutTotal(howLong: Duration): ThriftMethodBuilder.this.type

    Permalink

    See also

    Duration)

Inherited from AnyRef

Inherited from Any

Ungrouped