StatelessServiceContext Class
- java.
lang. Object - ServiceContext
- microsoft.
servicefabric. services. runtime. StatelessServiceContext
- microsoft.
public class StatelessServiceContext extends ServiceContext
Represents the service context that the stateless service is operating under.
Constructor Summary
Method Summary
Modifier and Type | Method and Description |
---|---|
long |
getInstanceId()
Gets the stateless service instance id. |
Inherited Members
ServiceContext.getCodePackageActivationContext()
ServiceContext.getInitializationData()
ServiceContext.getNodeContext()
ServiceContext.getPartitionId()
ServiceContext.getReplicaOrInstanceId()
ServiceContext.getServiceName()
ServiceContext.getServiceTypeName()
ServiceContext.getTraceId()
ServiceContext.ServiceContext(NodeContext nodeContext, CodePackageActivationContext codePackageActivationContext, String serviceTypeName, URI serviceName, byte[] initializationData, UUID partitionId, long replicaOrInstanceId)
Constructor Details
StatelessServiceContext
protected StatelessServiceContext(NodeContext nodeContext, CodePackageActivationContext codePackageActivationContext, String serviceTypeName, URI serviceName, byte[] initializationData, UUID partitionId, long instanceId)
Parameters:
nodeContext
codePackageActivationContext
serviceTypeName
serviceName
initializationData
partitionId
instanceId
Method Details
getInstanceId
public long getInstanceId()
Gets the stateless service instance id.
Returns:
The stateless service instance id.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java