你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
StatefulService Class
- java.
lang. Object - StatefulServiceBase
- microsoft.
servicefabric. services. runtime. StatefulService
- microsoft.
public class StatefulService extends StatefulServiceBase
Represents the base class for Microsoft Service Fabric based stateful reliable service which provides an ReliableStateManager to manager service's state Derive from this class to implement a Microsoft Service Fabric based stateful reliable service.
Constructor Summary
Constructor | Description |
---|---|
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 |
Method Summary
Modifier and Type | Method and Description |
---|---|
Reliable |
getReliableStateManager()
Gets the replica's ReliableStateManager |
Inherited Members
Constructor Details
StatefulService
protected StatefulService(StatefulServiceContext serviceContext)
Creates a new stateful service with default ReliableStateManager
Parameters:
StatefulService
protected StatefulService(StatefulServiceContext serviceContext, ReliableStateManagerReplica stateManagerReplica)
Creates a new stateful service with non-default ReliableStateManager
Parameters:
Method Details
getReliableStateManager
public ReliableStateManager getReliableStateManager()
Gets the replica's ReliableStateManager
Returns: