azure-docs-sdk-java/docs-ref-autogen/microsoft.servicefabric.ser...

58 строки
4.7 KiB
YAML

### YamlMime:JavaType
inheritances:
- <xref href="java.lang.Object" data-throw-if-not-resolved="False"/>
methods:
- fullName: microsoft.servicefabric.services.runtime.ServiceRuntime.registerStatefulServiceAsync(String serviceTypeName, Function<StatefulServiceContext, StatefulServiceBase> serviceFactory, Duration timeout)
name: registerStatefulServiceAsync(String serviceTypeName, Function<StatefulServiceContext, StatefulServiceBase> serviceFactory, Duration timeout)
nameWithType: ServiceRuntime.registerStatefulServiceAsync(String serviceTypeName, Function<StatefulServiceContext, StatefulServiceBase> serviceFactory, Duration timeout)
parameters:
- description: <p>ServiceTypeName as provied in service manifest. </p>
name: serviceTypeName
type: <xref href="String?alt=String&text=String" data-throw-if-not-resolved="False"/>
- description: <p>A factory method to create stateful service objects. </p>
name: serviceFactory
type: Function&lt;<xref href="system.fabric.StatefulServiceContext?alt=system.fabric.StatefulServiceContext&text=StatefulServiceContext" data-throw-if-not-resolved="False"/>, <xref href="microsoft.servicefabric.services.runtime.StatefulServiceBase?alt=microsoft.servicefabric.services.runtime.StatefulServiceBase&text=StatefulServiceBase" data-throw-if-not-resolved="False"/>&gt;
- description: <p>Timeout for the register operation.</p>
name: timeout
type: <xref href="Duration?alt=Duration&text=Duration" data-throw-if-not-resolved="False"/>
returns:
description: <p>A CompletableFuture that represents the asynchronous register operation. </p>
type: <xref href="CompletableFuture%3C%3F%3E?alt=CompletableFuture%3C%3F%3E&text=CompletableFuture%3C%3F%3E" data-throw-if-not-resolved="False"/>
summary: >-
<p>Registers a reliable stateful service with Service Fabric runtime.</p>
<p></p>
syntax: public static CompletableFuture<?> registerStatefulServiceAsync(String serviceTypeName, Function<StatefulServiceContext, StatefulServiceBase> serviceFactory, Duration timeout)
uid: microsoft.servicefabric.services.runtime.ServiceRuntime.registerStatefulServiceAsync(String,Function<StatefulServiceContext, StatefulServiceBase>,Duration)
- fullName: microsoft.servicefabric.services.runtime.ServiceRuntime.registerStatelessServiceAsync(String serviceTypeName, Function<StatelessServiceContext, StatelessServiceBase> serviceFactory, Duration timeout)
name: registerStatelessServiceAsync(String serviceTypeName, Function<StatelessServiceContext, StatelessServiceBase> serviceFactory, Duration timeout)
nameWithType: ServiceRuntime.registerStatelessServiceAsync(String serviceTypeName, Function<StatelessServiceContext, StatelessServiceBase> serviceFactory, Duration timeout)
parameters:
- description: <p>ServiceTypeName as provied in service manifest. </p>
name: serviceTypeName
type: <xref href="String?alt=String&text=String" data-throw-if-not-resolved="False"/>
- description: <p>A factory method to create stateless service objects. </p>
name: serviceFactory
type: Function&lt;<xref href="microsoft.servicefabric.services.runtime.StatelessServiceContext?alt=microsoft.servicefabric.services.runtime.StatelessServiceContext&text=StatelessServiceContext" data-throw-if-not-resolved="False"/>, <xref href="microsoft.servicefabric.services.runtime.StatelessServiceBase?alt=microsoft.servicefabric.services.runtime.StatelessServiceBase&text=StatelessServiceBase" data-throw-if-not-resolved="False"/>&gt;
- description: <p>Timeout for the register operation.</p>
name: timeout
type: <xref href="Duration?alt=Duration&text=Duration" data-throw-if-not-resolved="False"/>
returns:
description: <p>A CompletableFuture that represents the asynchronous register operation. </p>
type: <xref href="CompletableFuture%3C%3F%3E?alt=CompletableFuture%3C%3F%3E&text=CompletableFuture%3C%3F%3E" data-throw-if-not-resolved="False"/>
summary: >-
<p>Registers a reliable stateless service with Service Fabric runtime.</p>
<p></p>
syntax: public static CompletableFuture<?> registerStatelessServiceAsync(String serviceTypeName, Function<StatelessServiceContext, StatelessServiceBase> serviceFactory, Duration timeout)
uid: microsoft.servicefabric.services.runtime.ServiceRuntime.registerStatelessServiceAsync(String,Function<StatelessServiceContext, StatelessServiceBase>,Duration)
nameWithType: ServiceRuntime
syntax: public class ServiceRuntime
type: class
uid: microsoft.servicefabric.services.runtime.ServiceRuntime
fullName: microsoft.servicefabric.services.runtime.ServiceRuntime
name: ServiceRuntime
package: microsoft.servicefabric.services.runtime
summary: <p>Class that provides methods to resister reliable services with Service Fabric runtime. </p>
metadata: {}