你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
StatelessServiceFactory Interface
public interface StatelessServiceFactory
Represents a stateless service factory that is responsible for creating instances of a specific type of stateless service.
Remarks:Stateless service factories are registered with the FabricRuntime by service hosts via system.fabric.FabricRuntime#registerStatelessServiceFactory(java.lang.String,system.fabric.StatelessServiceFactory) or system.fabric.FabricRuntime#registerStatelessServiceFactoryAsync(java.lang.String,system.fabric.StatelessServiceFactory,java.time.Duration)
Method Summary
Modifier and Type | Method and Description |
---|---|
Stateless |
createInstance(String serviceTypeName, URI serviceName, byte[] initializationData, UUID partitionId, long instanceId)
Creates a stateless service instance for a particular service. This method is called by Service Fabric. |
Method Details
createInstance
public StatelessServiceInstance createInstance(String serviceTypeName, URI serviceName, byte[] initializationData, UUID partitionId, long instanceId)
Creates a stateless service instance for a particular service. This method is called by Service Fabric.
Parameters:
Returns:
Throws: