Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SimplePool Members

SimplePool overview

Public Instance Constructors

SimplePool Constructor Creates a new instance of the SimplePool class.

Public Instance Properties

NumActive Gets the number of instances currently borrowed from the pool.
NumIdle Gets the number of instances currently idle in the pool.
PoolableObjectFactory Set the factory used to create new instances.

Public Instance Methods

AddObject Create an object using the factory set by the PoolableObjectFactory property or other implementation dependent mechanism and place it into the pool.
BorrowObject Obtain an instance from the pool.
Clear Clear objects sitting idle in the pool, releasing any associated resources.
Close Close the pool and free any resources associated with it.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ReturnObject Return an instance to the pool.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

DoBorrow Synchronized borrow logic.
DoReturn Synchronized release logic.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
InitItems Instantiates the supplied number of instances and adds them to the pool.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

SimplePool Class | Spring.Pool.Support Namespace