Packages

c

com.twitter.inject.thrift

ThriftMethodBuilder

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

Provides ThriftMethod-specific MethodBuilder functionality.

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

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def filtered[T <: Filter[Req, Rep, Req, Rep]](implicit arg0: Manifest[T]): ThriftMethodBuilder.this.type

    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

    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
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def idempotent(maxExtraLoad: Tunable[Double]): ThriftMethodBuilder.this.type

    See also

    Tunable[Double])

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

    See also

    Double)

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def nonIdempotent: ThriftMethodBuilder.this.type

  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def service: Service[Req, Rep]

    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
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. def withAgnosticFilter[T <: TypeAgnostic](implicit arg0: Manifest[T]): ThriftMethodBuilder.this.type

    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

    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

    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

    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 withMaxRetries(value: Int): ThriftMethodBuilder.this.type

    See also

    com.twitter.finagle.client.BaseMethodBuilder#withMaxRetries(int)

  31. def withRetryDisabled: ThriftMethodBuilder.this.type

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

    See also

    ResponseClassifier)

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

    See also

    Tunable[Duration])

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

    See also

    Duration)

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

    See also

    Tunable[Duration])

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

    See also

    Duration)

Inherited from AnyRef

Inherited from Any

Ungrouped