ServicePartitionKey Class
- java.
lang. Object - microsoft.
servicefabric. services. client. ServicePartitionKey
- microsoft.
public class ServicePartitionKey
Defines a key to address a service partition.
Field Summary
Modifier and Type | Field and Description |
---|---|
final Service |
singleton
Returns a ServicePartitionKey that indicates a singleton partition. |
Constructor Summary
Constructor | Description |
---|---|
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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Service |
kind()
Kind of the partition this key applies to. |
Object |
value()
The value of the partition key. This value can be casted to the right type based on the value of the Kind property. |
Field Details
singleton
public static final ServicePartitionKey singleton= new ServicePartitionKey()
Returns a ServicePartitionKey that indicates a singleton partition.
Constructor Details
ServicePartitionKey
public ServicePartitionKey()
Create a ServicePartitionKey for singleton partitioned service.
ServicePartitionKey
public ServicePartitionKey(long partitionKey)
Create a ServicePartitionKey for uniform int64 partitioned service.
Parameters:
ServicePartitionKey
public ServicePartitionKey(String partitionKey)
Create a ServicePartitionKey for named partitioned services.
Parameters:
Method Details
kind
public ServicePartitionKind kind()
Kind of the partition this key applies to.
Returns:
value
public Object value()
The value of the partition key. This value can be casted to the right type based on the value of the Kind property.
Returns:
Applies to
Azure SDK for Java