Class DefaultRoutingPolicy (1.6.3)

Stay organized with collections Save and categorize content based on your preferences.
public class DefaultRoutingPolicy implements RoutingPolicy

Inheritance

java.lang.Object > DefaultRoutingPolicy

Implements

RoutingPolicy

Constructors

DefaultRoutingPolicy(long numPartitions)

public DefaultRoutingPolicy(long numPartitions)
Parameter
NameDescription
numPartitionslong

Methods

route(ByteString messageKey)

public Partition route(ByteString messageKey)
Parameter
NameDescription
messageKeyByteString
Returns
TypeDescription
Partition
Exceptions
TypeDescription
ApiException

routeWithoutKey()

public Partition routeWithoutKey()
Returns
TypeDescription
Partition
Exceptions
TypeDescription
ApiException