Packages

c

com.twitter.inject.thrift.filters

JavaDarkTrafficFilter

class JavaDarkTrafficFilter extends BaseDarkTrafficFilter

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

Note

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

See also

com.twitter.finagle.ThriftMux.newService

AbstractDarkTrafficFilter

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JavaDarkTrafficFilter
  2. BaseDarkTrafficFilter
  3. Logging
  4. AbstractDarkTrafficFilter
  5. TypeAgnostic
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

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

    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
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[Req, Rep](factory: ServiceFactory[Req, Rep]): ServiceFactory[Req, Rep]
    Definition Classes
    TypeAgnostic
  5. def andThen[Req, Rep](svc: Service[Req, Rep]): Service[Req, Rep]
    Definition Classes
    TypeAgnostic
  6. def andThen[ReqIn, RepOut, ReqOut, RepIn](next: Filter[ReqIn, RepOut, ReqOut, RepIn]): Filter[ReqIn, RepOut, ReqOut, RepIn]
    Definition Classes
    TypeAgnostic
  7. def andThen(next: TypeAgnostic): TypeAgnostic
    Definition Classes
    TypeAgnostic
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def debug(marker: Marker, message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  11. def debug(message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  12. def debug(marker: Marker, message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  13. def debug(message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  14. def debugResult[T](message: => String)(fn: => T): T
    Attributes
    protected[this]
    Definition Classes
    Logging
  15. val enableSampling: (Any) => Boolean
    Attributes
    protected
    Definition Classes
    JavaDarkTrafficFilterBaseDarkTrafficFilter
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def error(marker: Marker, message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  19. def error(message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  20. def error(marker: Marker, message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  21. def error(message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  22. def errorResult[T](message: => String)(fn: => T): T
    Attributes
    protected[this]
    Definition Classes
    Logging
  23. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def handleFailedInvocation[T](request: T, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    BaseDarkTrafficFilter → AbstractDarkTrafficFilter
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def info(marker: Marker, message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  28. def info(message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  29. def info(marker: Marker, message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  30. def info(message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  31. def infoResult[T](message: => String)(fn: => T): T
    Attributes
    protected[this]
    Definition Classes
    Logging
  32. def invokeDarkService[Req, Rep](bytes: Req): Future[Rep]
    Attributes
    protected
    Definition Classes
    JavaDarkTrafficFilterBaseDarkTrafficFilter
  33. def isDebugEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  34. def isDebugEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  35. def isErrorEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  36. def isErrorEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  37. def isInfoEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  38. def isInfoEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. def isTraceEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  41. def isTraceEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  42. def isWarnEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  43. def isWarnEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  44. final def logger: Logger
    Attributes
    protected[this]
    Definition Classes
    Logging
  45. final def loggerName: String
    Attributes
    protected[this]
    Definition Classes
    Logging
  46. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  47. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  48. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  49. def sendDarkRequest[Req](request: Req)(shouldInvoke: Boolean, invokeDarkService: (Req) => Future[_]): Future[_]
    Attributes
    protected
    Definition Classes
    AbstractDarkTrafficFilter
  50. def serviceConcurrently[Req, Rep](service: Service[Req, Rep], request: Req)(shouldInvoke: Boolean, invokeDarkService: (Req) => Future[_]): Future[Rep]
    Attributes
    protected
    Definition Classes
    AbstractDarkTrafficFilter
  51. val statsReceiver: StatsReceiver
    Definition Classes
    JavaDarkTrafficFilterBaseDarkTrafficFilter → AbstractDarkTrafficFilter
  52. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  53. def toFilter[T, U]: Filter[T, U, T, U]
    Definition Classes
    BaseDarkTrafficFilter → TypeAgnostic
  54. def toString(): String
    Definition Classes
    TypeAgnostic → AnyRef → Any
  55. def trace(marker: Marker, message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  56. def trace(message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  57. def trace(marker: Marker, message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  58. def trace(message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  59. def traceResult[T](message: => String)(fn: => T): T
    Attributes
    protected[this]
    Definition Classes
    Logging
  60. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  61. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  62. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  63. def warn(marker: Marker, message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  64. def warn(message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  65. def warn(marker: Marker, message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  66. def warn(message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  67. def warnResult[T](message: => String)(fn: => T): T
    Attributes
    protected[this]
    Definition Classes
    Logging

Inherited from BaseDarkTrafficFilter

Inherited from util.logging.Logging

Inherited from TypeAgnostic

Inherited from AnyRef

Inherited from Any

Ungrouped