211 строки
11 KiB
YAML
211 строки
11 KiB
YAML
### YamlMime:ManagedReference
|
|
items:
|
|
- uid: microsoft.servicefabric.actors.runtime._actor_runtime
|
|
id: _actor_runtime
|
|
parent: microsoft.servicefabric.actors.runtime
|
|
children:
|
|
- microsoft.servicefabric.actors.runtime._actor_runtime.registerActorAsync(Class<T>,BiFunction<StatefulServiceContext, ActorTypeInformation, FabricActorService>,Duration)
|
|
- microsoft.servicefabric.actors.runtime._actor_runtime.registerActorAsync(Class<T>,Duration)
|
|
href: microsoft.servicefabric.actors.runtime._actor_runtime.yml
|
|
langs:
|
|
- java
|
|
name: ActorRuntime
|
|
nameWithType: ActorRuntime
|
|
fullName: microsoft.servicefabric.actors.runtime.ActorRuntime
|
|
type: Class
|
|
source:
|
|
remote: &o0
|
|
path: src/prod/src/java/microsoft.servicefabric.actors/src/microsoft/servicefabric/actors/runtime/ActorRuntime.java
|
|
branch: master
|
|
repo: https://msazure.visualstudio.com/One/_git/sf-java
|
|
path: src/prod/src/java/microsoft.servicefabric.actors/src/microsoft/servicefabric/actors/runtime/ActorRuntime.java
|
|
startLine: 20
|
|
package: microsoft.servicefabric.actors.runtime
|
|
summary: <p>Contains methods to register actor type with Service Fabric runtime. </p>
|
|
syntax: &o1
|
|
content: public class ActorRuntime
|
|
inheritance:
|
|
- java.lang.Object
|
|
- uid: microsoft.servicefabric.actors.runtime._actor_runtime.registerActorAsync(Class<T>,BiFunction<StatefulServiceContext, ActorTypeInformation, FabricActorService>,Duration)
|
|
id: registerActorAsync(Class<T>,BiFunction<StatefulServiceContext, ActorTypeInformation, FabricActorService>,Duration)
|
|
parent: microsoft.servicefabric.actors.runtime._actor_runtime
|
|
href: microsoft.servicefabric.actors.runtime._actor_runtime.yml
|
|
langs:
|
|
- java
|
|
name: registerActorAsync(Class<T> actorType, BiFunction<StatefulServiceContext, ActorTypeInformation, FabricActorService> actorServiceFactory, Duration timeout)
|
|
nameWithType: ActorRuntime.registerActorAsync(Class<T> actorType, BiFunction<StatefulServiceContext, ActorTypeInformation, FabricActorService> actorServiceFactory, Duration timeout)
|
|
fullName: microsoft.servicefabric.actors.runtime.ActorRuntime.registerActorAsync(Class<T> actorType, BiFunction<StatefulServiceContext, ActorTypeInformation, FabricActorService> actorServiceFactory, Duration timeout)
|
|
overload: microsoft.servicefabric.actors.runtime._actor_runtime.registerActorAsync*
|
|
type: Method
|
|
source:
|
|
remote: *o0
|
|
path: src/prod/src/java/microsoft.servicefabric.actors/src/microsoft/servicefabric/actors/runtime/ActorRuntime.java
|
|
startLine: 67
|
|
package: microsoft.servicefabric.actors.runtime
|
|
summary: >-
|
|
<p>Registers an actor type with Service Fabric runtime.</p>
|
|
|
|
<p></p>
|
|
syntax:
|
|
content: public static static<T extends ActorBase> CompletableFuture<?> registerActorAsync(Class<T> actorType, BiFunction<StatefulServiceContext, ActorTypeInformation, FabricActorService> actorServiceFactory, Duration timeout)
|
|
parameters:
|
|
- id: actorType
|
|
type: ffb09d2d
|
|
description: <p>The actor class implementing <xref uid="microsoft.servicefabric.actors._actor" data-throw-if-not-resolved="false">Actor</xref> interface </p>
|
|
- id: actorServiceFactory
|
|
type: 8ead6242system.fabric._stateful_service_contextb33c76fcmicrosoft.servicefabric.actors.runtime._actor_type_informationb33c76fcmicrosoft.servicefabric.actors.runtime._fabric_actor_servicea08ddfce
|
|
description: <p>Actor Service implementation to create Actor. See <xref uid="microsoft.servicefabric.actors.runtime._fabric_actor_service" data-throw-if-not-resolved="false">FabricActorService</xref></p>
|
|
- id: timeout
|
|
type: e02a2de0
|
|
description: <p>A timeout period after which the registration operation will be canceled. </p>
|
|
return:
|
|
type: 1e2c6103microsoft.servicefabric.actors.runtime._actor_basea598367f
|
|
description: <p>A task that represents the asynchronous operation to register actor type with Service Fabric runtime. </p>
|
|
- uid: microsoft.servicefabric.actors.runtime._actor_runtime.registerActorAsync(Class<T>,Duration)
|
|
id: registerActorAsync(Class<T>,Duration)
|
|
parent: microsoft.servicefabric.actors.runtime._actor_runtime
|
|
href: microsoft.servicefabric.actors.runtime._actor_runtime.yml
|
|
langs:
|
|
- java
|
|
name: registerActorAsync(Class<T> actorType, Duration timeout)
|
|
nameWithType: ActorRuntime.registerActorAsync(Class<T> actorType, Duration timeout)
|
|
fullName: microsoft.servicefabric.actors.runtime.ActorRuntime.registerActorAsync(Class<T> actorType, Duration timeout)
|
|
overload: microsoft.servicefabric.actors.runtime._actor_runtime.registerActorAsync*
|
|
type: Method
|
|
source:
|
|
remote: *o0
|
|
path: src/prod/src/java/microsoft.servicefabric.actors/src/microsoft/servicefabric/actors/runtime/ActorRuntime.java
|
|
startLine: 44
|
|
package: microsoft.servicefabric.actors.runtime
|
|
summary: >-
|
|
<p>Registers an actor type with Service Fabric runtime.</p>
|
|
|
|
<p></p>
|
|
syntax:
|
|
content: public static static<T extends ActorBase> CompletableFuture<?> registerActorAsync(Class<T> actorType, Duration timeout)
|
|
parameters:
|
|
- id: actorType
|
|
type: ffb09d2d
|
|
description: <p>The actor class implementing <xref uid="microsoft.servicefabric.actors._actor" data-throw-if-not-resolved="false">microsoft.servicefabric.actors.Actor</xref> interface </p>
|
|
- id: timeout
|
|
type: e02a2de0
|
|
description: <p>A timeout period after which the registration operation will be canceled. </p>
|
|
return:
|
|
type: 1e2c6103microsoft.servicefabric.actors.runtime._actor_basea598367f
|
|
description: <p>A task that represents the asynchronous operation to register actor type with Service Fabric runtime. </p>
|
|
references:
|
|
- uid: ffb09d2d
|
|
spec.java:
|
|
- name: Class<T>
|
|
fullName: Class<T>
|
|
- uid: e02a2de0
|
|
spec.java:
|
|
- name: Duration
|
|
fullName: Duration
|
|
- uid: 1e2c6103microsoft.servicefabric.actors.runtime._actor_basea598367f
|
|
spec.java:
|
|
- name: 'static<T extends '
|
|
fullName: 'static<T extends '
|
|
- uid: microsoft.servicefabric.actors.runtime._actor_base
|
|
name: ActorBase
|
|
fullName: microsoft.servicefabric.actors.runtime.ActorBase
|
|
href: microsoft.servicefabric.actors.runtime._actor_base.yml
|
|
- name: '> CompletableFuture<?>'
|
|
fullName: '> CompletableFuture<?>'
|
|
- uid: microsoft.servicefabric.actors.runtime._actor_runtime.registerActorAsync*
|
|
name: registerActorAsync
|
|
nameWithType: ActorRuntime.registerActorAsync
|
|
fullName: microsoft.servicefabric.actors.runtime.ActorRuntime.registerActorAsync
|
|
package: microsoft.servicefabric.actors.runtime
|
|
- uid: 8ead6242system.fabric._stateful_service_contextb33c76fcmicrosoft.servicefabric.actors.runtime._actor_type_informationb33c76fcmicrosoft.servicefabric.actors.runtime._fabric_actor_servicea08ddfce
|
|
spec.java:
|
|
- name: BiFunction<
|
|
fullName: BiFunction<
|
|
- uid: system.fabric._stateful_service_context
|
|
name: StatefulServiceContext
|
|
fullName: system.fabric.StatefulServiceContext
|
|
href: system.fabric._stateful_service_context.yml
|
|
- name: ', '
|
|
fullName: ', '
|
|
- uid: microsoft.servicefabric.actors.runtime._actor_type_information
|
|
name: ActorTypeInformation
|
|
fullName: microsoft.servicefabric.actors.runtime.ActorTypeInformation
|
|
href: microsoft.servicefabric.actors.runtime._actor_type_information.yml
|
|
- name: ', '
|
|
fullName: ', '
|
|
- uid: microsoft.servicefabric.actors.runtime._fabric_actor_service
|
|
name: FabricActorService
|
|
fullName: microsoft.servicefabric.actors.runtime.FabricActorService
|
|
href: microsoft.servicefabric.actors.runtime._fabric_actor_service.yml
|
|
- name: '>'
|
|
fullName: '>'
|
|
- uid: microsoft.servicefabric.actors.runtime._actor_runtime
|
|
parent: microsoft.servicefabric.actors.runtime
|
|
href: microsoft.servicefabric.actors.runtime._actor_runtime.yml
|
|
name: ActorRuntime
|
|
nameWithType: ActorRuntime
|
|
fullName: microsoft.servicefabric.actors.runtime.ActorRuntime
|
|
type: Class
|
|
summary: <p>Contains methods to register actor type with Service Fabric runtime. </p>
|
|
syntax: *o1
|
|
- uid: microsoft.servicefabric.actors.runtime._actor_base
|
|
parent: microsoft.servicefabric.actors.runtime
|
|
href: microsoft.servicefabric.actors.runtime._actor_base.yml
|
|
name: ActorBase
|
|
nameWithType: ActorBase
|
|
fullName: microsoft.servicefabric.actors.runtime.ActorBase
|
|
type: Class
|
|
summary: >-
|
|
<p>Represents base class for actors. <xref uid="microsoft.servicefabric.actors._actor" data-throw-if-not-resolved="false">microsoft.servicefabric.actors.Actor</xref></p>
|
|
|
|
<p>
|
|
|
|
<b>Remarks:</b>This is a base type for actor, it provides the functionality that is common across actors implemented by actor deriving from <xref uid="microsoft.servicefabric.actors._actor" data-throw-if-not-resolved="false">microsoft.servicefabric.actors.Actor</xref> The state is preserved across actor garbage collections and fail-overs. The storage and retrieval of the state is provided by the actor state provider <xref uid="microsoft.servicefabric.actors.runtime._actor_state_provider" data-throw-if-not-resolved="false">microsoft.servicefabric.actors.runtime.ActorStateProvider</xref>. </p>
|
|
syntax:
|
|
content: public class ActorBase
|
|
- uid: microsoft.servicefabric.actors._actor
|
|
parent: microsoft.servicefabric.actors
|
|
href: microsoft.servicefabric.actors._actor.yml
|
|
name: Actor
|
|
nameWithType: Actor
|
|
fullName: microsoft.servicefabric.actors.Actor
|
|
type: Interface
|
|
summary: <p>Base interface for inheriting reliable actor interfaces. </p>
|
|
syntax:
|
|
content: public interface Actor
|
|
- uid: system.fabric._stateful_service_context
|
|
parent: system.fabric
|
|
href: system.fabric._stateful_service_context.yml
|
|
name: StatefulServiceContext
|
|
nameWithType: StatefulServiceContext
|
|
fullName: system.fabric.StatefulServiceContext
|
|
type: Class
|
|
summary: <p>Represents the service context that the stateful service is operating under. </p>
|
|
syntax:
|
|
content: public class StatefulServiceContext
|
|
- uid: microsoft.servicefabric.actors.runtime._actor_type_information
|
|
parent: microsoft.servicefabric.actors.runtime
|
|
href: microsoft.servicefabric.actors.runtime._actor_type_information.yml
|
|
name: ActorTypeInformation
|
|
nameWithType: ActorTypeInformation
|
|
fullName: microsoft.servicefabric.actors.runtime.ActorTypeInformation
|
|
type: Class
|
|
summary: <p>Contains information about the type implementing an actor. </p>
|
|
syntax:
|
|
content: public class ActorTypeInformation
|
|
- uid: microsoft.servicefabric.actors.runtime._fabric_actor_service
|
|
parent: microsoft.servicefabric.actors.runtime
|
|
href: microsoft.servicefabric.actors.runtime._fabric_actor_service.yml
|
|
name: FabricActorService
|
|
nameWithType: FabricActorService
|
|
fullName: microsoft.servicefabric.actors.runtime.FabricActorService
|
|
type: Class
|
|
summary: >-
|
|
<p>Represents the base class for Microsoft Service Fabric based reliable actors service. </p>
|
|
|
|
<p>
|
|
|
|
<b>Remarks:</b>Derive from this class to implement your own custom actor service if you want to override any service level behavior for your actors. </p>
|
|
syntax:
|
|
content: public class FabricActorService
|