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 | Description |
---|---|
Stateful |
Creates a new stateful service with default ReliableStateManager |
Stateful |
Creates a new stateful service with non-default ReliableStateManager |
Modifier and Type | Method and Description |
---|---|
Reliable |
get Gets the replica's ReliableStateManager |
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:
getReliableStateManager
public ReliableStateManager getReliableStateManager()
Gets the replica's ReliableStateManager
Returns:
Comentários do Azure SDK for Java
O Azure SDK for Java é um projeto código aberto. Selecione um link para fornecer comentários: