PoolFactorySetMaxConnections Method |
Set the max number of client to server connections that the pool will create.
Namespace: GemStone.GemFire.CacheAssembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntaxpublic PoolFactory SetMaxConnections(
int maxConnections
)
Public Function SetMaxConnections (
maxConnections As Integer
) As PoolFactory
public:
PoolFactory^ SetMaxConnections(
int maxConnections
)
member SetMaxConnections :
maxConnections : int -> PoolFactory
Parameters
- maxConnections
- Type: SystemInt32
Return Value
Type:
PoolFactory
ExceptionsException | Condition |
---|
|
throws IllegalArgumentException if maxConnections is less than minConnections.
|
Remarks
If all of the connections are in use, an operation requiring a client to
server connection will block until a connection is available.
see setFreeConnectionTimeout(int)
See Also