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