com.twitter.finagle.thrift.exp.partitioning
ClientHashingStrategy
Companion object ClientHashingStrategy
final class ClientHashingStrategy extends HashingPartitioningStrategy
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
- Alphabetic
- By Inheritance
- ClientHashingStrategy
- HashingPartitioningStrategy
- PartitioningStrategy
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ClientHashingStrategy(getHashingKeyAndRequest: ToPartitionedMap)
- getHashingKeyAndRequest
A PartialFunction implemented by client that provides the partitioning logic on a request. It takes a Thrift object request, and returns a Map of hashing keys to sub-requests. If we don't need to fan-out, it should return one element: hashing key to the original request. This PartialFunction can take multiple Thrift request types of one Thrift service (different method endpoints of one service).
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val getHashingKeyAndRequest: ToPartitionedMap
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val requestMergerRegistry: RequestMergerRegistry
A RequestMergerRegistry implemented by client to supply RequestMergers for message fan-out cases.
A RequestMergerRegistry implemented by client to supply RequestMergers for message fan-out cases.
- See also
RequestMerger
- val responseMergerRegistry: ResponseMergerRegistry
A ResponseMergerRegistry implemented by client to supply ResponseMergers for message fan-out cases.
A ResponseMergerRegistry implemented by client to supply ResponseMergers for message fan-out cases.
- See also
ResponseMerger
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()