public class DefaultRoutingPolicy extends Object implements RoutingPolicy
| Constructor and Description |
|---|
DefaultRoutingPolicy(int numPartitions) |
| Modifier and Type | Method and Description |
|---|---|
Partition |
route(com.google.protobuf.ByteString messageKey) |
Partition |
routeWithoutKey() |
public DefaultRoutingPolicy(int 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 © 2020 Google LLC. All rights reserved.