factoryFor

open override fun factoryFor(actor: AnyActorClass, factory: ActorFactory): ClusterActorRegistry

Registers the actor class with the provided factory and returns the updated actor registry.

Return

The updated ActorRegistry after registering the actor class with the factory.

Parameters

actor

The class of the actor to be registered.

factory

The factory responsible for creating instances of the specified actor class.

Throws

If the provided actor class has no simple name (i.e., is an anonymous class).