const mixinafIoc::ActorPools

afIoc::ActorPools

(Service) - Maintains a collection of named ActorPools. Use to keep tabs on your resources, particularly when creating SynchronizedState instances.

IoC uses an ActorPool named afIoc.system. Contribute your own via your AppModule:

@Contribute { serviceType=RegistryShutdownHub# }
static Void contributeActorPools(MappedConfig config) {
  config["myPool"] = ActorPool()
}

@since 1.6.0

get

Source

@Operator
abstract ActorPool get(Str name)

Returns the ActorPool mapped to the given name, or throws a NotFoundErr if it doesn't exist.

stats

Source

abstract Str:Int stats()

Returns a map of ActorPool names and the number of times it's been requested.