StatefulServiceContext Class
- java.
lang. Object - ServiceContext
- system.
fabric. StatefulServiceContext
- system.
public class StatefulServiceContext extends ServiceContext
Represents the service context that the stateful service is operating under.
Constructor Summary
Constructor | Description |
---|---|
StatefulServiceContext(NodeContext nodeContext, CodePackageActivationContext codePackageActivationContext, String serviceTypeName, URI serviceName, byte[] initializationData, UUID partitionId, long replicaId) |
Instantiates the system.fabric.StatefulServiceContext object. |
Method Summary
Modifier and Type | Method and Description |
---|---|
long |
getReplicaId()
Gets the stateful service replica ID. |
Inherited Members
Constructor Details
StatefulServiceContext
public StatefulServiceContext(NodeContext nodeContext, CodePackageActivationContext codePackageActivationContext, String serviceTypeName, URI serviceName, byte[] initializationData, UUID partitionId, long replicaId)
Instantiates the system.fabric.StatefulServiceContext object.
Parameters:
Method Details
getReplicaId
public long getReplicaId()
Gets the stateful service replica ID.
Returns:
Applies to
Azure SDK for Java
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente las Cuestiones de GitHub como mecanismo de retroalimentación para el contenido y lo sustituiremos por un nuevo sistema de retroalimentación. Para más información, consulta:Enviar y ver comentarios de