public class DefaultRoutingPolicy extends Object implements RoutingPolicy
RoutingPolicy.Factory| Constructor and Description |
|---|
DefaultRoutingPolicy(long numPartitions) |
| Modifier and Type | Method and Description |
|---|---|
Partition |
route(com.google.protobuf.ByteString messageKey) |
Partition |
routeWithoutKey() |
public DefaultRoutingPolicy(long numPartitions)
throws com.google.api.gax.rpc.ApiException
com.google.api.gax.rpc.ApiExceptionpublic Partition routeWithoutKey() throws com.google.api.gax.rpc.ApiException
routeWithoutKey in interface RoutingPolicycom.google.api.gax.rpc.ApiExceptionpublic Partition route(com.google.protobuf.ByteString messageKey) throws com.google.api.gax.rpc.ApiException
route in interface RoutingPolicycom.google.api.gax.rpc.ApiExceptionCopyright © 2023 Google LLC. All rights reserved.