PoolFactorySetMinConnections Method |
Set the minimum number of connections to keep available at all times.
Namespace: GemStone.GemFire.CacheAssembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntaxpublic PoolFactory SetMinConnections(
int minConnections
)
Public Function SetMinConnections (
minConnections As Integer
) As PoolFactory
public:
PoolFactory^ SetMinConnections(
int minConnections
)
member SetMinConnections :
minConnections : int -> PoolFactory
Parameters
- minConnections
- Type: SystemInt32
Return Value
Type:
PoolFactory
ExceptionsException | Condition |
---|
|
throws IllegalArgumentException if minConnections is less than 0.
|
Remarks
When the pool is created, it will create this many connections.
If 0 then connections will not be made until an actual operation
is done that requires client-to-server communication.
See Also