ServicePartitionKey 类
定义
Defines a key to address a service partition.
public class ServicePartitionKey
- 继承
-
java.lang.ObjectServicePartitionKey
构造函数
ServicePartitionKey() |
Create a ServicePartitionKey for singleton partitioned service. |
ServicePartitionKey(long partitionKey) |
Create a ServicePartitionKey for uniform int64 partitioned service.
|
ServicePartitionKey(String partitionKey) |
Create a ServicePartitionKey for named partitioned services.
|
字段
singleton |
Returns a ServicePartitionKey that indicates a singleton partition. |
方法
kind() |
Kind of the partition this key applies to.
|
value() |
The value of the partition key. This value can be casted to the right type based on the value of the Kind property.
|