com.twitter.finagle.thrift.exp.partitioning
MethodBuilderHashingStrategy
Companion object MethodBuilderHashingStrategy
final class MethodBuilderHashingStrategy[Req <: ThriftStructIface, Rep] extends HashingPartitioningStrategy
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
- Alphabetic
- By Inheritance
- MethodBuilderHashingStrategy
- HashingPartitioningStrategy
- PartitioningStrategy
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MethodBuilderHashingStrategy(getHashingKeyAndRequest: ToPartitionedMap[Req])
-
new
MethodBuilderHashingStrategy(getHashingKeyAndRequest: ToPartitionedMap[Req], requestMerger: Option[RequestMerger[Req]], responseMerger: Option[ResponseMerger[Rep]])
- getHashingKeyAndRequest
A function for the partitioning logic. MethodBuilder is customized per-method so that this method only takes one Thrift request type.
- requestMerger
Supplies a RequestMerger for messaging fan-out. Non-fan-out case the default is None.
- responseMerger
Supplies a ResponseMerger for messaging fan-out. Non-fan-out case the default is None.
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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val getHashingKeyAndRequest: ToPartitionedMap[Req]
-
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 requestMerger: Option[RequestMerger[Req]]
- val responseMerger: Option[ResponseMerger[Rep]]
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()