50 строки
3.6 KiB
YAML
50 строки
3.6 KiB
YAML
### YamlMime:JavaType
|
|
methods:
|
|
- fullName: system.fabric.StatelessServiceFactory.createInstance(String serviceTypeName, URI serviceName, byte[] initializationData, UUID partitionId, long instanceId)
|
|
name: createInstance(String serviceTypeName, URI serviceName, byte[] initializationData, UUID partitionId, long instanceId)
|
|
nameWithType: StatelessServiceFactory.createInstance(String serviceTypeName, URI serviceName, byte[] initializationData, UUID partitionId, long instanceId)
|
|
parameters:
|
|
- description: <p>The service type that Service Fabric requests to be created. </p>
|
|
name: serviceTypeName
|
|
type: <xref href="String?alt=String&text=String" data-throw-if-not-resolved="False"/>
|
|
- description: <p>The fabric:/ name (Uri) of the service with which this replica is associated. </p>
|
|
name: serviceName
|
|
type: <xref href="URI?alt=URI&text=URI" data-throw-if-not-resolved="False"/>
|
|
- description: <p>A byte array that contains the initialization data which was originally passed as a part of this service's service description. </p>
|
|
name: initializationData
|
|
type: <xref href="byte+%5B%5D?alt=byte+%5B%5D&text=byte+%5B%5D" data-throw-if-not-resolved="False"/>
|
|
- description: <p>The partition ID (GUID) with which this replica is associated. </p>
|
|
name: partitionId
|
|
type: <xref href="UUID?alt=UUID&text=UUID" data-throw-if-not-resolved="False"/>
|
|
- description: <p>The replica ID for this replica of type long. </p>
|
|
name: instanceId
|
|
type: <xref href="long?alt=long&text=long" data-throw-if-not-resolved="False"/>
|
|
exceptions:
|
|
- type: <xref href="InstantiationException?alt=InstantiationException&text=InstantiationException" data-throw-if-not-resolved="False"/>
|
|
description: <p>On failure of instance creation </p>
|
|
- type: <xref href="IllegalAccessException?alt=IllegalAccessException&text=IllegalAccessException" data-throw-if-not-resolved="False"/>
|
|
description: <p>On Access voilation </p>
|
|
returns:
|
|
description: <p>Returns <xref uid="" data-throw-if-not-resolved="false" data-raw-source="system.fabric.query.StatelessServiceInstance"></xref>. </p>
|
|
type: <xref href="system.fabric.StatelessServiceInstance?alt=system.fabric.StatelessServiceInstance&text=StatelessServiceInstance" data-throw-if-not-resolved="False"/>
|
|
summary: >-
|
|
<p>Creates a stateless service instance for a particular service. This method is called by Service Fabric.</p>
|
|
|
|
<p></p>
|
|
syntax: public StatelessServiceInstance createInstance(String serviceTypeName, URI serviceName, byte[] initializationData, UUID partitionId, long instanceId)
|
|
uid: system.fabric.StatelessServiceFactory.createInstance(String,URI,byte [],UUID,long)
|
|
nameWithType: StatelessServiceFactory
|
|
syntax: public interface StatelessServiceFactory
|
|
type: interface
|
|
uid: system.fabric.StatelessServiceFactory
|
|
fullName: system.fabric.StatelessServiceFactory
|
|
name: StatelessServiceFactory
|
|
package: system.fabric
|
|
summary: >-
|
|
<p>Represents a stateless service factory that is responsible for creating instances of a specific type of stateless service. </p>
|
|
|
|
<p>
|
|
|
|
<b>Remarks:</b>Stateless service factories are registered with the <xref uid="system.fabric.FabricRuntime" data-throw-if-not-resolved="false" data-raw-source="system.fabric.FabricRuntime"></xref> by service hosts via <xref uid="" data-throw-if-not-resolved="false" data-raw-source="system.fabric.FabricRuntime#registerStatelessServiceFactory(java.lang.String,system.fabric.StatelessServiceFactory)"></xref> or <xref uid="" data-throw-if-not-resolved="false" data-raw-source="system.fabric.FabricRuntime#registerStatelessServiceFactoryAsync(java.lang.String,system.fabric.StatelessServiceFactory,java.time.Duration)"></xref></p>
|
|
metadata: {}
|