ServicePartitionKey Class

  • java.lang.Object
    • microsoft.servicefabric.services.client.ServicePartitionKey

public class ServicePartitionKey

Defines a key to address a service partition.

Field Summary

Modifier and Type Field and Description
final ServicePartitionKey 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
ServicePartitionKind 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:

partitionKey - Value of the int64 partition key.

ServicePartitionKey

public ServicePartitionKey(String partitionKey)

Create a ServicePartitionKey for named partitioned services.

Parameters:

partitionKey - Value of the named partition key.

Method Details

kind

public ServicePartitionKind kind()

Kind of the partition this key applies to.

Returns:

Partition kind

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:

Partition key

Applies to