Package

com.twitter.finagle.thrift.exp

partitioning

Permalink

package partitioning

Visibility
  1. Public
  2. All

Type Members

  1. final class ClientCustomStrategy extends CustomPartitioningStrategy

    Permalink

    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

    Note

    When updating the partition topology dynamically, there is a potential one-time mismatch if a Service Discovery update happens after getPartitionIdAndRequest.

  2. final class ClientHashingStrategy extends HashingPartitioningStrategy

    Permalink

    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

  3. sealed trait CustomPartitioningStrategy extends PartitioningStrategy

    Permalink
  4. sealed trait HashingPartitioningStrategy extends PartitioningStrategy

    Permalink
  5. class PartitioningParams[A <: Parameterized[A]] extends AnyRef

    Permalink

    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

  6. sealed trait PartitioningStrategy extends AnyRef

    Permalink

    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. 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.

  7. class ThriftCustomPartitioningService[Req, Rep] extends PartitioningService[Req, Rep]

    Permalink

    This custom partitioning service integrates with the user supplied CustomPartitioningStrategy.

    This custom partitioning service integrates with the user supplied CustomPartitioningStrategy. This provides users direct setup for their partitioning topologies.

    See also

    PartitioningService.

  8. trait WithThriftPartitioningStrategy[A <: Parameterized[A]] extends AnyRef

    Permalink

    Provides the withPartitioning API entry point

    Provides the withPartitioning API entry point

    See also

    PartitioningParams

Ungrouped