Package

com.twitter.finagle

param

Permalink

package param

Defines common com.twitter.finagle.Stack.Param's shared between finagle clients and servers.

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

Type Members

  1. class ClientAdmissionControlParams[A <: Parameterized[A]] extends AnyRef

    Permalink

    A collection of methods for configuring the admission control modules of Finagle clients.

    A collection of methods for configuring the admission control modules of Finagle clients.

    A

    a Stack.Parameterized client to configure

  2. trait ClientParams[A <: Parameterized[A]] extends AnyRef

    Permalink

    A collection of methods for basic configuration of Finagle clients.

    A collection of methods for basic configuration of Finagle clients.

    A

    a Stack.Parameterized client to configure

    See also

    https://twitter.github.io/finagle/guide/Clients.html

  3. class ClientSessionParams[A <: Parameterized[A]] extends SessionParams[A]

    Permalink

    A collection of methods for configuring sessions of the Finagle clients.

    A collection of methods for configuring sessions of the Finagle clients.

    Session might be viewed as logical connection that wraps a physical connection (i.e., transport) and controls its lifecycle. Sessions are used in Finagle to maintain liveness, requests cancellation, draining, and much more.

    A

    a Stack.Parameterized client to configure.

    See also

    SessionPoolingParams for pooling related configuration.

  4. class ClientTransportParams[A <: Parameterized[A]] extends TransportParams[A]

    Permalink

    A collection of methods for configuring the Transport for Finagle clients.

    A collection of methods for configuring the Transport for Finagle clients.

    A

    a Stack.Parameterized client to configure

    See also

    com.twitter.finagle.param.TransportParams

  5. trait CommonParams[A <: Parameterized[A]] extends AnyRef

    Permalink

    A collection of methods for configuring common parameters (labels, stats receivers, etc) shared between Finagle clients and servers.

    A collection of methods for configuring common parameters (labels, stats receivers, etc) shared between Finagle clients and servers.

    A

    a Stack.Parameterized server/client to configure

  6. class DefaultLoadBalancingParams[A <: Parameterized[A]] extends AnyRef

    Permalink

    A collection of methods for configuring the Load Balancing (default) module of Finagle clients.

    A collection of methods for configuring the Load Balancing (default) module of Finagle clients.

    A

    a Stack.Parameterized client to configure

    See also

    https://twitter.github.io/finagle/guide/Clients.html#load-balancing

  7. case class ExceptionStatsHandler(categorizer: stats.ExceptionStatsHandler) extends Product with Serializable

    Permalink

    A class eligible for configuring a com.twitter.finagle.stats.ExceptionStatsHandler throughout finagle servers and clients.

    A class eligible for configuring a com.twitter.finagle.stats.ExceptionStatsHandler throughout finagle servers and clients.

    NB: Since the default for failures is to be scoped under "failures", if you set the default to be in another scope, it may be difficult for engineers unfamiliar with your stats to understand your service's key metrics.

  8. case class HighResTimer(timer: util.Timer) extends Product with Serializable

    Permalink

    A class eligible for configuring a high resolution com.twitter.util.Timer such that tasks are run tighter to their schedule.

    A class eligible for configuring a high resolution com.twitter.util.Timer such that tasks are run tighter to their schedule.

    timer

    it is a requirement that it propagates Locals from scheduling time to execution time.

    Note

    it is expected that the resolution should be sub-10 milliseconds.

    See also

    Timer for a configuration that is appropriate for tasks that do not need fine-grained scheduling.

  9. case class Label(label: String) extends Product with Serializable

    Permalink

    A class eligible for configuring a label used to identify finagle clients and servers.

  10. case class Logger(log: java.util.logging.Logger) extends Product with Serializable

    Permalink

    A class eligible for configuring a java.util.logging.Logger used throughout finagle clients and servers.

  11. case class Monitor(monitor: util.Monitor) extends Product with Serializable

    Permalink

    A class eligible for configuring a com.twitter.util.Monitor throughout finagle servers and clients.

  12. case class ProtocolLibrary(name: String) extends Product with Serializable

    Permalink

    A class eligible for configuring a client library name used to identify which client library a client is using.

  13. case class Reporter(reporter: ReporterFactory) extends Product with Serializable

    Permalink

    A class eligible for configuring a com.twitter.finagle.util.ReporterFactory throughout finagle servers and clients.

  14. case class ResponseClassifier(responseClassifier: service.ResponseClassifier) extends Product with Serializable

    Permalink

    A class eligible for configuring a com.twitter.finagle.service.ResponseClassifier which is used to determine the result of a request/response.

    A class eligible for configuring a com.twitter.finagle.service.ResponseClassifier which is used to determine the result of a request/response.

    This allows developers to give Finagle the additional application specific knowledge necessary in order to properly classify them. Without this, Finagle can only safely make judgements about the transport level failures.

    As an example take an HTTP client that receives a response with a 500 status code back from a server. To Finagle this is a successful request/response based solely on the transport level. The application developer may want to treat all 500 status codes as failures and can do so via a com.twitter.finagle.service.ResponseClassifier.

    It is a PartialFunction and as such multiple classifiers can be composed together via PartialFunction.orElse.

    Note

    If unspecified, the default classifier is com.twitter.finagle.service.ResponseClassifier.Default which is a total function fully covering the input domain.

    See also

    com.twitter.finagle.http.service.HttpResponseClassifier for some HTTP classification tools.

  15. class ServerAdmissionControlParams[A <: Parameterized[A]] extends AnyRef

    Permalink

    A collection of methods for configuring the server-side admission control modules of Finagle servers.

    A collection of methods for configuring the server-side admission control modules of Finagle servers.

    A

    a Stack.Parameterized server to configure

  16. class ServerTransportParams[A <: Parameterized[A]] extends TransportParams[A]

    Permalink

    A collection of methods for configuring the Transport for Finagle servers.

    A collection of methods for configuring the Transport for Finagle servers.

    A

    a Stack.Parameterized server to configure

    See also

    com.twitter.finagle.param.TransportParams

  17. class SessionParams[A <: Parameterized[A]] extends AnyRef

    Permalink

    A collection of methods for configuring sessions of Finagle clients and servers.

    A collection of methods for configuring sessions of Finagle clients and servers.

    Session might be viewed as logical connection that wraps a physical connection (i.e., transport) and controls its lifecycle. Sessions are used in Finagle to maintain liveness, requests cancellation, draining, and much more.

    A

    a Stack.Parameterized client to configure

  18. class SessionPoolingParams[A <: Parameterized[A]] extends AnyRef

    Permalink

    A collection of methods for configuring the Pooling module of Finagle clients.

    A collection of methods for configuring the Pooling module of Finagle clients.

    A

    a Stack.Parameterized client to configure

    See also

    https://twitter.github.io/finagle/guide/Clients.html#pooling

  19. class SessionQualificationParams[A <: Parameterized[A]] extends AnyRef

    Permalink

    A collection of methods for configuring modules which help Finagle determine the health of a session.

    A collection of methods for configuring modules which help Finagle determine the health of a session. Some of these act as circuit breakers, instructing the load balancer to choose alternate paths. Effectively these enable your client to maintain higher success rates.

    A

    a Stack.Parameterized client to configure

    See also

    https://twitter.github.io/finagle/guide/Clients.html#circuit-breaking

  20. case class Stats(statsReceiver: StatsReceiver) extends Product with Serializable

    Permalink

    A class eligible for configuring a com.twitter.finagle.stats.StatsReceiver throughout finagle clients and servers.

  21. case class Timer(timer: util.Timer) extends Product with Serializable

    Permalink

    A class eligible for configuring a com.twitter.util.Timer used throughout finagle clients and servers.

    A class eligible for configuring a com.twitter.util.Timer used throughout finagle clients and servers.

    timer

    it is a requirement that it propagates Locals from scheduling time to execution time.

    See also

    HighResTimer for a configuration that needs a more fine-grained timer as this is typically implemented via a "hashed wheel timer" which is optimized for approximated I/O timeout scheduling.

  22. case class Tracer(tracer: tracing.Tracer) extends Product with Serializable

    Permalink

    A class eligible for configuring a com.twitter.finagle.tracing.Tracer throughout finagle servers and clients.

  23. abstract class TransportParams[A <: Parameterized[A]] extends AnyRef

    Permalink

    A collection of methods for configuring the Transport params of Finagle servers or clients.

    A collection of methods for configuring the Transport params of Finagle servers or clients.

    Transport is a Finagle abstraction over the network connection (i.e., a TCP connection).

    A

    a Stack.Parameterized server/client to configure

    Note

    This class is abstract in a sense that it's base for both server and client transports.

    See also

    ClientTransportParams for client-specific params ServerTransportParams for server-specific params

  24. trait WithClientAdmissionControl[A <: Parameterized[A]] extends AnyRef

    Permalink
  25. trait WithClientSession[A <: Parameterized[A]] extends AnyRef

    Permalink

    Provides the withSession (client's session) API entry point.

    Provides the withSession (client's session) API entry point.

    See also

    ClientSessionParams

  26. trait WithClientTransport[A <: Parameterized[A]] extends AnyRef

    Permalink

    Provides the withTransport (client's transport) API entry point.

    Provides the withTransport (client's transport) API entry point.

    See also

    ClientTransportParams

  27. trait WithDefaultLoadBalancer[A <: Parameterized[A]] extends AnyRef

    Permalink

    Provides the withLoadBalancer (default balancer) API entry point.

    Provides the withLoadBalancer (default balancer) API entry point.

    See also

    DefaultLoadBalancingParams

  28. trait WithServerAdmissionControl[A <: Parameterized[A]] extends AnyRef

    Permalink

    Provides the withAdmissionControl API entry point.

    Provides the withAdmissionControl API entry point.

    See also

    ServerAdmissionControlParams

  29. trait WithServerSession[A <: Parameterized[A]] extends AnyRef

    Permalink

    Provides the withSession API entry point for servers.

    Provides the withSession API entry point for servers.

    See also

    SessionParams

  30. trait WithServerTransport[A <: Parameterized[A]] extends AnyRef

    Permalink

    Provides the withTransport (server's transport) API entry point.

    Provides the withTransport (server's transport) API entry point.

    See also

    ServerTransportParams

  31. trait WithSessionPool[A <: Parameterized[A]] extends AnyRef

    Permalink

    Provides the withSessionPool (default pool) API entry point.

    Provides the withSessionPool (default pool) API entry point.

    See also

    SessionPoolingParams

  32. trait WithSessionQualifier[A <: Parameterized[A]] extends AnyRef

    Permalink

    Provides the withSessionQualifier API entry point.

    Provides the withSessionQualifier API entry point.

    See also

    SessionQualificationParams

Value Members

  1. object ExceptionStatsHandler extends Serializable

    Permalink
  2. object HighResTimer extends Serializable

    Permalink
  3. object Label extends Serializable

    Permalink
  4. object Logger extends Serializable

    Permalink
  5. object Monitor extends Serializable

    Permalink
  6. object ProtocolLibrary extends Serializable

    Permalink
  7. object Reporter extends Serializable

    Permalink
  8. object ResponseClassifier extends Serializable

    Permalink
  9. object Stats extends Serializable

    Permalink
  10. object Timer extends Serializable

    Permalink
  11. object Tracer extends Serializable

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped