final class ThriftMethodBuilder[ServicePerEndpoint <: Filterable[ServicePerEndpoint], Req, Rep] extends AnyRef
Provides ThriftMethod
-specific MethodBuilder functionality.
- Alphabetic
- By Inheritance
- ThriftMethodBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- 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
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def idempotent(maxExtraLoad: Tunable[Double]): ThriftMethodBuilder.this.type
- See also
Tunable[Double])
- def idempotent(maxExtraLoad: Double): ThriftMethodBuilder.this.type
- See also
Double)
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonIdempotent: ThriftMethodBuilder.this.type
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- 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
- 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
- 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
- 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
- def withMaxRetries(value: Int): ThriftMethodBuilder.this.type
- See also
com.twitter.finagle.client.BaseMethodBuilder#withMaxRetries(int)
- def withRetryDisabled: ThriftMethodBuilder.this.type
- def withRetryForClassifier(classifier: ResponseClassifier): ThriftMethodBuilder.this.type
- See also
ResponseClassifier)
- def withTimeoutPerRequest(howLong: Tunable[Duration]): ThriftMethodBuilder.this.type
- See also
Tunable[Duration])
- def withTimeoutPerRequest(howLong: Duration): ThriftMethodBuilder.this.type
- See also
Duration)
- def withTimeoutTotal(howLong: Tunable[Duration]): ThriftMethodBuilder.this.type
- See also
Tunable[Duration])
- def withTimeoutTotal(howLong: Duration): ThriftMethodBuilder.this.type
- See also
Duration)