package partitioning
- Alphabetic
- Public
- All
Type Members
-
final
class
ClientCustomStrategy[A] extends CustomPartitioningStrategy
An API to set a custom partitioning strategy for a Thrift/ThriftMux Client.
An API to set a custom partitioning strategy for a Thrift/ThriftMux Client. For a Java-friendly way to do the same thing, see
ClientCustomStrategy.create -
final
class
ClientHashingStrategy extends HashingPartitioningStrategy
An API to set a consistent hashing partitioning strategy for a Thrift/ThriftMux Client.
An API to set a consistent hashing partitioning strategy for a Thrift/ThriftMux Client. For a Java-friendly way to do the same thing, see
ClientHashingStrategy.create - sealed trait CustomPartitioningStrategy extends PartitioningStrategy
- sealed trait HashingPartitioningStrategy extends PartitioningStrategy
-
final
class
MethodBuilderCustomStrategy[Req <: ThriftStructIface, Rep] extends CustomPartitioningStrategy
An API to set a custom partitioning strategy for a client MethodBuilder.
-
final
class
MethodBuilderHashingStrategy[Req <: ThriftStructIface, Rep] extends HashingPartitioningStrategy
An API to set a hashing partitioning strategy for a client MethodBuilder.
An API to set a hashing partitioning strategy for a client MethodBuilder. For a Java-friendly way to do the same thing, see
MethodBuilderHashingStrategy.create -
class
PartitioningParams[A <: Parameterized[A]] extends AnyRef
A collection of methods for configuring the PartitioningService of Thrift clients
A collection of methods for configuring the PartitioningService of Thrift clients
- A
a Stack.Parameterized client to configure
-
sealed
trait
PartitioningStrategy extends AnyRef
Service partitioning strategy to apply on the clients in order to let clients route requests accordingly.
Service partitioning strategy to apply on the clients in order to let clients route requests accordingly. Two particular partitioning strategies are going to be supported, HashingPartitioningStrategy and CustomPartitioningStrategy, each one supports both configuring Finagle Client Stack and ThriftMux MethodBuilder. Either one will need developers to provide a concrete function to give each request an indicator of destination, for example a hashing key or a partition address. Messaging fan-out is supported by leveraging RequestMerger and ResponseMerger.
-
trait
WithThriftPartitioningStrategy[A <: Parameterized[A]] extends AnyRef
Provides the
withPartitioningAPI entry pointProvides the
withPartitioningAPI entry point- See also
Value Members
-
object
ClientCustomStrategies
The java-friendly way to create a ClientCustomStrategy.
The java-friendly way to create a ClientCustomStrategy. Scala users should instead use the parallel methods on ClientCustomStrategy$.
- Note
com.twitter.util.Function may be useful in helping create a scala.PartialFunction.
- object ClientCustomStrategy
- object ClientHashingStrategy
- object MethodBuilderCustomStrategy
- object MethodBuilderHashingStrategy
- object PartitioningStrategy