StatefulService 构造函数

定义

重载

StatefulService(StatefulServiceContext serviceContext)

Creates a new stateful service with default ReliableStateManager

StatefulService(StatefulServiceContext serviceContext, ReliableStateManagerReplica stateManagerReplica)

Creates a new stateful service with non-default ReliableStateManager

StatefulService(StatefulServiceContext serviceContext)

Creates a new stateful service with default ReliableStateManager

protected StatefulService(StatefulServiceContext serviceContext)

参数

serviceContext
StatefulServiceContext

Describes the stateful service context, which provides information like replica ID, partition ID, service name.

StatefulService(StatefulServiceContext serviceContext, ReliableStateManagerReplica stateManagerReplica)

Creates a new stateful service with non-default ReliableStateManager

protected StatefulService(StatefulServiceContext serviceContext, ReliableStateManagerReplica stateManagerReplica)

参数

serviceContext
StatefulServiceContext

Describes the stateful service context, which provides information like replica ID, partition ID, service name.

stateManagerReplica
ReliableStateManagerReplica

Represents a reliable state provider replica.

适用于