Package io.dapr.actors.runtime
Interface ActorFactory<T extends AbstractActor>
- Type Parameters:
T
- Actor Type to be created.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Creates an actor of a given type.
-
Method Summary
Modifier and TypeMethodDescriptioncreateActor
(ActorRuntimeContext<T> actorRuntimeContext, ActorId actorId) Creates an Actor.
-
Method Details
-
createActor
Creates an Actor.- Parameters:
actorRuntimeContext
- Actor type's context in the runtime.actorId
- Actor Id.- Returns:
- Actor or null it failed.
-