ObjectPoolUtil
Public / Methods
DebugIntervalTick
This method must be called repeatedly in order to provide the periodic output of debug logging messages.
This method is called automatically from the following methods:
Client code should call this method only if the above calls are not sufficient for maintaining periodic debug output.
- See also
NameWithIdentity
Creates an object pool name based on the given name in and the object identity of obj in.
PoolClear
Calls IObjectPoolBaseThreadSafe.ClearThreadSafe on all registered object pools that implement IObjectPoolBaseThreadSafe.
PoolCreate
Registers the given newly created object pool in.
The PoolDestroy method must always be called for pool in when the given pool in is discarded (via IDisposable.Dispose or IDeletable.Delete) or when shutting down (see TinmanModule.Shutdown).
Statistics
Calls IObjectPoolBase.Statistics on all registered pools and returns the collected statistic values.
Public / Attributes
DebugInterval
Sets the time interval to use for logging usage statistics of all registered object pools.
Log messages are emitted by Logger. Please refer to ObjectPoolStats for details on the message format for usage statistics.
The default value is 0
(i.e. disabled).
- See also