In this post under Apache Pool, I will explain with example the purpose of “MaxWait” duration property. This property is used in conjunction with “BlockWhenExhausted” property explained in previous post. This property works only when “BlockWhenExhausted” is set to “true”. When “BlockWhenExhausted” is set to true and the caller tries to get idle objects more…… Continue reading MaxWait duration property
Month: January 2024
BlockWhenExhausted Pool Property
In this post under Apache Pool, I will explain with example the purpose of “BlockWhenExhausted” property of an Object Pool. Lets say we have 3 idle objects in the object pool and the caller code retrieves all the 3 objects. As a result of which the pool will be empty i.e., no idle objects will…… Continue reading BlockWhenExhausted Pool Property
Object Pools object retrieval strategy
In this post under Apache Pool, I will explain Apache Pool’s object retrieval strategy with example. Whenever we request an object from an object pool, by default it follows LIFO (Last In First Out) strategy, to retrieve an idle object. For example if in a pool, object are added in the below order and all…… Continue reading Object Pools object retrieval strategy