ActorRuntime Class
- java.
lang. Object - microsoft.
servicefabric. actors. runtime. ActorRuntime
- microsoft.
public class ActorRuntime
Contains methods to register actor type with Service Fabric runtime.
Method Summary
Modifier and Type | Method and Description |
---|---|
static<T extends Actor |
registerActorAsync(Class<T> actorType, BiFunction<StatefulServiceContext, ActorTypeInformation, FabricActorService> actorServiceFactory, Duration timeout)
Registers an actor type with Service Fabric runtime. |
static<T extends Actor |
registerActorAsync(Class<T> actorType, Duration timeout)
Registers an actor type with Service Fabric runtime. |
Method Details
registerActorAsync
public static static
Registers an actor type with Service Fabric runtime.
Parameters:
actorType
- The actor class implementing Actor interface
actorServiceFactory
- Actor Service implementation to create Actor. See FabricActorService
timeout
- A timeout period after which the registration operation will be canceled.
Returns:
A task that represents the asynchronous operation to register actor type with Service Fabric runtime.
registerActorAsync
public static static
Registers an actor type with Service Fabric runtime.
Parameters:
actorType
- The actor class implementing Actor interface
timeout
- A timeout period after which the registration operation will be canceled.
Returns:
A task that represents the asynchronous operation to register actor type with Service Fabric runtime.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java