Abstract:
Object pool design pattern is very import pattern for manages scarce or expensive resource by requiring the objects to be checked in and out of a finite pool. This paper studies the pattern based on the Mark Grands research, and designs some new interfaces for object management, and extends the old pattern for designing new program quickly and implicitly.
摘要: 在object pool设计模式的基础上,研究了实际应用中对象池模型的共性接口和策略,设计了对象池的管理接口、对象建立与消亡接口、对象回收接口等,并根据这些接口提出了新的抽象扩展模型,为thread pool、connect pool等应用提供了基础模式。
关键词:
设计模式,
对象池,
对象管理,
线程池,
连接池
CLC Number:
SHUI Chao, LIH Ui. Extension and Implementation of Object pool pattern[J]. , 2004, 30(09): 30-.
水超,李慧. 对象池模式的扩展与设计[J]. , 2004, 30(09): 30-.