Register interest for the keys of the region that match the given regular expression 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.Generic
Assembly:  GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)


void RegisterRegex(
	string regex,
	bool isDurable,
	ICollection<TKey> resultKeys
Visual Basic (Declaration)
Sub RegisterRegex ( _
	regex As String, _
	isDurable As Boolean, _
	resultKeys As ICollection(Of TKey) _
Visual C++
void RegisterRegex (
	String^ regex, 
	bool isDurable, 
	ICollection<TKey>^ resultKeys


the regular expression to register
whether the registration should be durable
ICollection<(Of <TKey>)>
if non-null then the keys that match the regular expression on the server are returned


GemStone.GemFire.Cache.Generic..::IllegalArgumentException If the regular expression string is empty.
GemStone.GemFire.Cache.Generic..::CacheServerException If an exception is received from the Java cache server.
GemStone.GemFire.Cache.Generic..::NotConnectedException if not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it. For pools configured with locators, if no locators are available, innerException of NotConnectedException is set to NoAvailableLocatorsException.
GemStone.GemFire.Cache.Generic..::MessageException If the message received from server could not be handled. This will be the case when an unregistered typeId is received in the reply or reply is not well formed. More information can be found in the log.
GemStone.GemFire.Cache.Generic..::RegionDestroyedException If region destroy is pending.
GemStone.GemFire.Cache.Generic..::UnsupportedOperationException If the region is not a Native Client region or SetClientNotificationEnabled(Boolean) is false.
GemStone.GemFire.Cache.Generic..::TimeoutException if the operation timed out
GemStone.GemFire.Cache.Generic..::UnknownExceptionFor other exceptions.

See Also