The minimum queue depth shows how shallow the measurement object pool got.
最小队列深度显示了度量对象池有多浅。
To retrieve an object from the object pool, provide a scope type and a scope key.
为了从对象池获取对象,需要提供一个范围类型和一个范围键。
The object pool needs to keep track of the state of each object and to be thread safe.
对象池需要跟踪每个对象的状态,而且应该是线程安全的。
The resource manager USES the object pool provided by the container to manage system resources.
资源管理器会使用容器提供的对象池来管理系统资源。
I'll use the term object manager in this article to distinguish the framework from a conventional object pool.
在本文中,我将用对象管理器(object manager)这个词表示这个框架,以便区别于传统的对象池。
For pooling any.net object, I thought it would be interesting to write a general-purpose object pool for this article.
为了汇集任何. NET对象,我认为针对本文编写一个通用的对象池会很有趣。
To accomplish this effect, resolve these two issues: First, modify the object pool so that it understands the concept of scope.
为了实现这种效果,要解决两个问题:首先,修改对象池,让它理解范围的概念。
Much like an object pool, an object manager is responsible for getting objects from a pool and returning objects back to the pool.
与对象池一样,对象管理器也负责从池中获取对象和把对象返回池中。
The resource manager implements the object pool and it gets the managed resource that implements persistence, security state management, and transaction.
资源管理器实现了对象池,它能够获得实现持久化、安全性状态管理和事务的托管资源模式。
Object pool interface — an object-aware interface that calls the constructor and destructors appropriately during object creation and deletion, respectively.
对象池接口——有对象意识的接口,在对象创建和删除过程中分别相应地调用构造函数和析构函数。
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还支持对象池的常规概念,每个对象池均具有池管理器,从而为不同类类型提供对象池访问。
When using an object pool, the allocation, initialization, collection, and finalization only occur once, reducing both the memory usage and the processing time that is required.
在使用对象池时,分配、初始化、回收和终结只发生一次,从而减少了内存使用和所需的处理时间。
If an object is needed, it is retrieved from the pool and not created afresh.
如果需要一个对象,就从池中获取它,而不需要重新创建它。
If the pool size is not tuned correctly, many unused object instances can end up hanging around, using up memory without contributing value.
如果对象池大小没有正确调优,许多未使用的对象实例最终会被闲置,耗尽内存而不产生任何价值。
In the case of a business object attribute, the saved value from the data pool is copied to the input editor (or output editor for an emulator).
对于业务对象属性,将数据池中保存的值复制到输入编辑器(对于模拟器,复制到输出编辑器)。
You can edit the data pool filter to filter for other business object types, or clear the filter to show all of the types in the data pool.
您可以编辑数据池过滤器,以过滤其他业务对象类型,或清除过滤器,以显示数据池中的所有类型。
The difference is that the Data Pool button will filter the results based on the business object type that is currently selected in the editor and icon will have an empty filter.
区别是数据池按钮将基于当前在编辑器中选择的业务对象类型过滤结果,而数据池图标将不进行任何过滤。
After the object finishes its job, it is returned back to the pool and can be reused later.
当这个对象完成它的工作之后,它被返回给池,可供以后重新使用。
If you obtain an object from a pool, always make sure you return it back to the pool.
如果您从池中获取了一个对象,请始终确保将其返回到池中。
One of the most important things to implement when authoring a pool is a suitable object lifetime policy.
在创作池时需要实现的最重要的功能之一是适当的对象生存期策略。
The good news is, you don't have to really develop that pool of object designs from scratch.
从设计上来说,它的好处是你不需要开发那些对象。
To use a saved value, you just right-click any business object or attribute when you are editing values and select use value from Pool.
要使用保存的值,只需在编辑值时右键单击任何业务对象或属性,并选择useValuefromPool。
You use list_entry to get at your data object (to free it back to the kernel pool), and then use list_del to free the entry on the list.
您使用list_entry来获取您的数据对象(以便将它释放回内核池),然后使用list_del来释放列表中的条目。
NewScheduledThreadPool creates a pool that works like the Timer object but is better at handling uncaught exceptions and thread starvation.
newScheduledThreadPool可以创建像Timer对象一样工作的线程池,但是能够更好地处理未捕获的异常和线程饥饿。
The ReleaseObject method internally uses a private ReturnToPool method to restock the pool with the given object, shown in Figure 5 .
ReleaseObject方法在内部使用私有的ReturnToPool 方法,用给定对象重新填充该池,如图5 所示。
For the purposes of this article, we will create 10 pool threads per ProductionLine object and expand the pool if we run out of threads for any reason.
就本文的目的而言,我们将为每个ProductionLine对象创建10个入池线程,如果出于某些原因耗尽线程,我们还会扩展线程池。
The four lines of code at the bottom of Listing 1 prove that no matter how many times you ask for an instance of the ConnPool pool class, it will always return the same object.
清单1底部的四行代码则证明无论请求ConnPool池类的一个实例多少次,它都会返回相同的对象。
The execute method invokes the given delegate with an object from the pool, and ensures that the retrieved object is returned to the pool after the delegate completes.
Execute方法用该池中的对象调用给定的委托,并且确保在该委托完成之后将检索到的对象返回到该池中。
The execute method invokes the given delegate with an object from the pool, and ensures that the retrieved object is returned to the pool after the delegate completes.
Execute方法用该池中的对象调用给定的委托,并且确保在该委托完成之后将检索到的对象返回到该池中。
应用推荐