PoolFactorySetIdleTimeout Method |
Set the amount of time a connection can be idle before expiring the connection.
Namespace: GemStone.GemFire.CacheAssembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntaxpublic PoolFactory SetIdleTimeout(
int idleTimeout
)
Public Function SetIdleTimeout (
idleTimeout As Integer
) As PoolFactory
public:
PoolFactory^ SetIdleTimeout(
int idleTimeout
)
member SetIdleTimeout :
idleTimeout : int -> PoolFactory
Parameters
- idleTimeout
- Type: SystemInt32
Return Value
Type:
PoolFactory
ExceptionsException | Condition |
---|
|
throws IllegalArgumentException if idleTimout is less than 0.
|
Remarks
If the pool size is greater than the minimum specified, connections which have
been idle for longer than the idleTimeout will be closed.
See Also