Apart from implementation details, object pools generally have the interface illustrated in Listing 1.
如果不考虑实现细节,对象池一般采用清单1所示的接口。
To tune performance when using concurrent message delivery, we must turn our attention to a number of object pools managed by the application server.
为了在使用并发消息传递时优化性能,我们必须将注意力转向应用程序服务器托管的许多对象池。
WebSphere Application Server also supports the general concept of object pools, with each pool consisting of a pool manager providing access to pools for different class types.
WebSphereApplicationServer还支持对象池的常规概念,每个对象池均具有池管理器,从而为不同类类型提供对象池访问。
This enables accessor factory implementations to store the accessor factories in object pools to achieve better performance (due to less initialization overhead and less garbage collection).
这就允许访问器工厂实现将访问器工厂存储在对象池中,以实现更好的性能(因为初始化开销更少,垃圾回收工作也更少)。
Object pools are used to restrict the number of instances of a certain class.
使用对象池限制特定类的实例的数量。
Object pools are used to restrict the number of instances of a certain class.
使用对象池限制特定类的实例的数量。
应用推荐