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:
Applies to
Azure SDK for Java