PoolFactory SetThreadLocalConnections Method Pivotal GemFire .NET Client Documentation
Enable ThreadLocalConnection.

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

public PoolFactory SetThreadLocalConnections(
	bool enabled
)

Parameters

enabled
Type: System Boolean
Remarks

Sets the thread local connections policy for this pool. If true then any time a thread goes to use a connection from this pool it will check a thread local cache and see if it already has a connection in it. If so it will use it. If not it will get one from this pool and cache it in the thread local. This gets rid of thread contention for the connections but increases the number of connections the servers see. If false then connections are returned to the pool as soon as the operation being done with the connection completes. This allows connections to be shared amonst multiple threads keeping the number of connections down.
See Also