Class

com.twitter.inject.thrift.filters

JavaDarkTrafficFilter

Related Doc: package filters

Permalink

class JavaDarkTrafficFilter extends BaseDarkTrafficFilter

An implementation of com.twitter.finagle.exp.AbstractDarkTrafficFilter which extends com.twitter.finagle.Filter.TypeAgnostic for use with generated Java code.

Annotations
@Singleton()
Note

This filter is expected to be applied on a Service[Array[Byte], Array[Byte]]

See also

com.twitter.finagle.exp.AbstractDarkTrafficFilter

com.twitter.finagle.ThriftMux.newService

Linear Supertypes
BaseDarkTrafficFilter, Logging, util.logging.Logging, AbstractDarkTrafficFilter, TypeAgnostic, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JavaDarkTrafficFilter
  2. BaseDarkTrafficFilter
  3. Logging
  4. Logging
  5. AbstractDarkTrafficFilter
  6. TypeAgnostic
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JavaDarkTrafficFilter(darkService: Service[ThriftClientRequest, Array[Byte]], enableSamplingFn: Function[Array[Byte], Boolean], statsReceiver: StatsReceiver)

    Permalink
  2. new JavaDarkTrafficFilter(darkService: Service[ThriftClientRequest, Array[Byte]], enableSamplingFn: Function[Array[Byte], Boolean], forwardAfterService: Boolean, statsReceiver: StatsReceiver)

    Permalink

    darkService

    Service to which to send requests. Expected to be Service[ThriftClientRequest, Array[Byte]] which is the return from ThriftMux.newService.

    enableSamplingFn

    if function returns true, the request will be forwarded.

    forwardAfterService

    forward the request after the initial service has processed the request

    statsReceiver

    keeps stats for requests forwarded, skipped and failed.

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. def andThen[Req, Rep](factory: ServiceFactory[Req, Rep]): ServiceFactory[Req, Rep]

    Permalink
    Definition Classes
    TypeAgnostic
  5. def andThen[Req, Rep](svc: Service[Req, Rep]): Service[Req, Rep]

    Permalink
    Definition Classes
    TypeAgnostic
  6. def andThen[ReqIn, RepOut, ReqOut, RepIn](next: Filter[ReqIn, RepOut, ReqOut, RepIn]): Filter[ReqIn, RepOut, ReqOut, RepIn]

    Permalink
    Definition Classes
    TypeAgnostic
  7. def andThen(next: TypeAgnostic): TypeAgnostic

    Permalink
    Definition Classes
    TypeAgnostic
  8. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def debug(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  11. def debug(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  12. def debug(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  13. def debug(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  14. def debugFutureResult[T](msg: String)(func: ⇒ Future[T]): Future[T]

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  15. def debugResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  16. val enableSampling: (Any) ⇒ Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    JavaDarkTrafficFilterBaseDarkTrafficFilter
  17. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def error(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  20. def error(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  21. def error(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  22. def error(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  23. def errorResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  24. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. def handleFailedInvocation[T](request: T, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    BaseDarkTrafficFilter → AbstractDarkTrafficFilter
  27. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  28. def info(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  29. def info(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  30. def info(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  31. def info(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  32. def infoResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  33. def invokeDarkService[Req, Rep](bytes: Req): Future[Rep]

    Permalink
    Attributes
    protected
    Definition Classes
    JavaDarkTrafficFilterBaseDarkTrafficFilter
  34. def isDebugEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  35. def isDebugEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  36. def isErrorEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  37. def isErrorEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  38. def isInfoEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  39. def isInfoEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  40. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  41. def isTraceEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  42. def isTraceEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  43. def isWarnEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  44. def isWarnEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  45. final def logger: Logger

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  46. final def loggerName: String

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  47. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  50. def sendDarkRequest[Req](request: Req)(shouldInvoke: (Req) ⇒ Boolean, invokeDarkService: (Req) ⇒ Future[_]): Future[_]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractDarkTrafficFilter
  51. def serviceConcurrently[Req, Rep](service: Service[Req, Rep], request: Req)(shouldInvoke: (Req) ⇒ Boolean, invokeDarkService: (Req) ⇒ Future[_]): Future[Rep]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractDarkTrafficFilter
  52. val statsReceiver: StatsReceiver

    Permalink

    keeps stats for requests forwarded, skipped and failed.

    keeps stats for requests forwarded, skipped and failed.

    Definition Classes
    JavaDarkTrafficFilterBaseDarkTrafficFilter → AbstractDarkTrafficFilter
  53. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  54. def time[T](formatStr: String)(func: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  55. def toFilter[T, U]: Filter[T, U, T, U]

    Permalink
    Definition Classes
    BaseDarkTrafficFilter → TypeAgnostic
  56. def toString(): String

    Permalink
    Definition Classes
    TypeAgnostic → AnyRef → Any
  57. def trace(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  58. def trace(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  59. def trace(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  60. def trace(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  61. def traceResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  62. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  65. def warn(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  66. def warn(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  67. def warn(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  68. def warn(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  69. def warnResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging

Inherited from BaseDarkTrafficFilter

Inherited from Logging

Inherited from util.logging.Logging

Inherited from AbstractDarkTrafficFilter

Inherited from TypeAgnostic

Inherited from AnyRef

Inherited from Any

Ungrouped