Register interest for all the keys of the region to get updates from the server. Valid only for a Native Client region when client notification ( SetClientNotificationEnabled(Boolean) ) is true. Should only be called for durable clients and with cache server version 5.5 onwards.

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

Syntax

C#
public void RegisterAllKeys(
	bool isDurable,
	List<ICacheableKey> resultKeys,
	bool getInitialValues,
	bool receiveValues
)
Visual Basic (Declaration)
Public Sub RegisterAllKeys ( _
	isDurable As Boolean, _
	resultKeys As List(Of ICacheableKey), _
	getInitialValues As Boolean, _
	receiveValues As Boolean _
)
Visual C++
public:
void RegisterAllKeys (
	bool isDurable, 
	List<ICacheableKey^>^ resultKeys, 
	bool getInitialValues, 
	bool receiveValues
)

Parameters

isDurable
Boolean
whether the registration should be durable
resultKeys
List<(Of <ICacheableKey>)>
if non-null then all keys on the server are returned
getInitialValues
Boolean
true to populate the cache with values of all the keys from the server
receiveValues
Boolean
whether to act like notify-by-subscription is true

Exceptions

ExceptionCondition
GemStone.GemFire.Cache..::CacheServerException If an exception is received from the Java cache server.
GemStone.GemFire.Cache..::NotConnectedException if not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it.
GemStone.GemFire.Cache..::RegionDestroyedException If region destroy is pending.
GemStone.GemFire.Cache..::UnsupportedOperationException If the region is not a Native Client region or SetClientNotificationEnabled(Boolean) is false.
GemStone.GemFire.Cache..::TimeoutException if the operation timed out
GemStone.GemFire.Cache..::UnknownExceptionFor other exceptions.

See Also