com.twitter.finagle

filter

package filter

Visibility
  1. Public
  2. All

Type Members

  1. class DtabStatsFilter[Req, Rsp] extends SimpleFilter[Req, Rsp]

    Adds a Stat, dtab/local/size, that tracks the size of Dtab.local for all requests with a non-empty Dtab.

  2. class ExceptionSourceFilter[Req, Rep] extends SimpleFilter[Req, Rep]

    A com.twitter.finagle.Filter that sources exceptions.

    A com.twitter.finagle.Filter that sources exceptions. The serviceName field of any com.twitter.finagle.SourcedException thrown by the underlying com.twitter.finagle.Service is set to the serviceName argument of this filter.

  3. class HandletimeFilter[Req, Rep] extends SimpleFilter[Req, Rep]

    A com.twitter.finagle.Filter that records the elapsed execution times of the underlying com.twitter.finagle.Service.

    A com.twitter.finagle.Filter that records the elapsed execution times of the underlying com.twitter.finagle.Service. Durations are recorded in microseconds and emitted as a stat labeled "handletime_us" to the argument com.twitter.finagle.stats.StatsReceiver.

    Note

    the stat does not include the time that it takes to satisfy the returned Future, only how long it takes for the Service to return the Future.

  4. trait LogFormatter[-Req, Rep] extends AnyRef

  5. trait LoggingFilter[Req, Rep] extends SimpleFilter[Req, Rep]

    A com.twitter.finagle.Filter that logs all requests according to formatter.

  6. class MaskCancelFilter[Req, Rep] extends SimpleFilter[Req, Rep]

    A com.twitter.finagle.Filter that prevents cancellations from propagating to any subsequent Services.

    A com.twitter.finagle.Filter that prevents cancellations from propagating to any subsequent Services. i.e. when Future.raise is invoked on the result of this filter's apply method, the interrupt will not be propagated to the service. This is useful for lightweight protocols for which finishing a request is preferable to closing and reesstablishing a connection.

  7. class MkJvmFilter extends AnyRef

    Given a Jvm, create filters to record GCs (and other JVM events in the future).

  8. class MonitorFilter[Req, Rep] extends SimpleFilter[Req, Rep]

    A com.twitter.finagle.Filter that handles exceptions (incl.

    A com.twitter.finagle.Filter that handles exceptions (incl. raw) thrown by the subsequent com.twitter.finagle.Service. Exceptions are handled according to the argument com.twitter.util.Monitor.

  9. class RequestSemaphoreFilter[Req, Rep] extends SimpleFilter[Req, Rep]

    A com.twitter.finagle.Filter that restricts request concurrency according to an argument com.twitter.concurrent.AsyncSemaphore.

    A com.twitter.finagle.Filter that restricts request concurrency according to an argument com.twitter.concurrent.AsyncSemaphore. The number of concurrently-applied subsequent Services is bounded by the rate of permits doled out by the semaphore.

  10. class RequestSerializingFilter[Req, Rep] extends SimpleFilter[Req, Rep]

    A com.twitter.finagle.Filter that enforces request serialization, meaning that there is guaranteed to be only one outstanding request being serviced at any given time.

    A com.twitter.finagle.Filter that enforces request serialization, meaning that there is guaranteed to be only one outstanding request being serviced at any given time. Request concurrency is restricted by a com.twitter.concurrent.AsyncMutex.

    This filter is effectively equivalent to a com.twitter.finagle.filter.RequestSemaphoreFilter constructed with a com.twitter.concurrent.AsyncSemaphore no initialPermits or maxWaiters.

Ungrouped