Set the amount of time a connection can be idle before expiring the connection.

Namespace: GemStone.GemFire.Cache.Generic
Assembly:  GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 3.6.4.0

Syntax

C#
public CacheFactory SetIdleTimeout(
	int idleTimeout
)
Visual Basic (Declaration)
Public Function SetIdleTimeout ( _
	idleTimeout As Integer _
) As CacheFactory
Visual C++
public:
CacheFactory^ SetIdleTimeout (
	int idleTimeout
)

Parameters

idleTimeout
Int32

Return Value

a instance of CacheFactory

Remarks

If the pool size is greater than the minimum specified, connections which have been idle for longer than the idleTimeout will be closed.

Exceptions

ExceptionCondition
throws IllegalArgumentException if idleTimout is less than 0.

See Also