你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

StatelessServiceContext Class

  • java.lang.Object
    • ServiceContext
      • microsoft.servicefabric.services.runtime.StatelessServiceContext

public class StatelessServiceContext extends ServiceContext

Represents the service context that the stateless service is operating under.

Constructor Summary

Constructor Description
StatelessServiceContext(NodeContext nodeContext, CodePackageActivationContext codePackageActivationContext, String serviceTypeName, URI serviceName, byte[] initializationData, UUID partitionId, long instanceId)

Method Summary

Modifier and Type Method and Description
long getInstanceId()

Gets the stateless service instance id.

Inherited Members

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