Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SimplePool Constructor

Creates a new instance of the SimplePool class.

[Visual Basic]
Public Sub New( _
   ByVal factory As IPoolableObjectFactory, _
   ByVal size As Integer _
)
[C#]
SimplePool(
   IPoolableObjectFactory factory,
   int size
);

Parameters

factory
The factory used to instantiate and manage the lifecycle of pooled objects.
size
The initial size of the pool.

Exceptions

Exception Type Condition
ArgumentNullException If the supplied factory is a null reference (Nothing in Visual Basic).
ArgumentException If the supplied size is less than or equal to zero.

See Also

SimplePool Class | Spring.Pool.Support Namespace