const mixinafIoc::ActorPools

afIoc::ActorPools

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

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

@Contribute { serviceType=RegistryShutdownHub# }
static Void contributeActorPools(Configuration config) {
  config["myPool"] = ActorPool() { it.name = "MyPool" }
}

Note it is always a good idea to name your ActorPools for debugging reasons.

@since 1.6.0

@uses Configuration of Str:ActorPool

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.