CacheFactorySetMaxConnections 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 CacheFactory SetMaxConnections(
int maxConnections
)
Public Function SetMaxConnections (
maxConnections As Integer
) As CacheFactory
public:
CacheFactory^ SetMaxConnections(
int maxConnections
)
member SetMaxConnections :
maxConnections : int -> CacheFactory
Parameters
- maxConnections
- Type: SystemInt32
Return Value
Type:
CacheFactory
a instance of
CacheFactory
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