VMware Tanzu GemFire .NET Client API Reference

VMware Tanzu GemFire .NET Client: ISubscriptionService< TKey > Interface Template Reference
VMware Tanzu GemFire .NET Client
ISubscriptionService< TKey > Interface Template Reference

This generic interface class provides all Register Interest API's for GemFire's generic non local region IRegion<TKey, TValue>. More...

Inherited by SubscriptionService< TKey >.

Public Member Functions

void RegisterKeys (IReadOnlyCollection< TKey > keys)
 Registers a collection of keys for getting updates from the server. More...
 
void RegisterKeys (IReadOnlyCollection< TKey > keys, bool isDurable)
 Registers a collection of keys for getting updates from the server. Should only be called for durable clients and with cache server version 5.5 onwards. More...
 
void UnregisterKeys (IReadOnlyCollection< TKey > keys)
 Unregisters a collection of keys to stop getting updates for them. More...
 
void RegisterAllKeys ()
 Register interest for all the keys of the region to get updates from the server. More...
 
void RegisterAllKeys (bool isDurable)
 Register interest for all the keys of the region to get updates from the server. Should only be called for durable clients and with cache server version 5.5 onwards. More...
 
IReadOnlyCollection< TKey > GetInterestList ()
 get the interest list on this client More...
 
IReadOnlyCollection< string > GetInterestListRegex ()
 get the list of interest regular expressions on this client More...
 
void UnregisterAllKeys ()
 Unregister interest for all the keys of the region to stop getting updates for them. More...
 
void RegisterRegex (string regex)
 Register interest for the keys of the region that match the given regular expression to get updates from the server. More...
 
void RegisterRegex (string regex, bool isDurable)
 Register interest for the keys of the region that match the given regular expression to get updates from the server. Should only be called for durable clients and with cache server version 5.5 onwards. More...
 
void UnregisterRegex (string regex)
 Unregister interest for the keys of the region that match the given regular expression to stop getting updates for them. The regular expression must have been registered previously using a RegisterRegex call. More...
 

Detailed Description

This generic interface class provides all Register Interest API's for GemFire's generic non local region IRegion<TKey, TValue>.

Member Function Documentation

◆ GetInterestList()

IReadOnlyCollection<TKey> ISubscriptionService< TKey >.GetInterestList ( )

get the interest list on this client

◆ GetInterestListRegex()

IReadOnlyCollection<string> ISubscriptionService< TKey >.GetInterestListRegex ( )

get the list of interest regular expressions on this client

◆ RegisterAllKeys() [1/2]

void ISubscriptionService< TKey >.RegisterAllKeys ( )

Register interest for all the keys of the region to get updates from the server.

Exceptions
GemFireServerExceptionIf an exception is received from the Java cache server.
DotNetty.Transport.Channels.ConnectExceptionif not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it.
TimeoutExceptionif the operation timed out

◆ RegisterAllKeys() [2/2]

void ISubscriptionService< TKey >.RegisterAllKeys ( bool  isDurable)

Register interest for all the keys of the region to get updates from the server. Should only be called for durable clients and with cache server version 5.5 onwards.

Parameters
isDurablewhether the registration should be durable
Exceptions
GemFireServerExceptionIf an exception is received from the Java cache server.
DotNetty.Transport.Channels.ConnectExceptionif not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it.
GemFireInvalidOperationExceptionIf region destroy is pending. This is maps to org.apache.geode.cache.RegionDestroyedException
TimeoutExceptionif the operation timed out

◆ RegisterKeys() [1/2]

void ISubscriptionService< TKey >.RegisterKeys ( IReadOnlyCollection< TKey >  keys)

Registers a collection of keys for getting updates from the server.

Parameters
keysa collection of keys
Exceptions
GemFireIllegalArgumentExceptionIf the collection of keys is empty.
ArgumentExceptionIf already registered interest for all keys.
GemFireServerExceptionIf an exception is received from the Java cache server.
DotNetty.Transport.Channels.ConnectExceptionif not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it.

◆ RegisterKeys() [2/2]

void ISubscriptionService< TKey >.RegisterKeys ( IReadOnlyCollection< TKey >  keys,
bool  isDurable 
)

Registers a collection of keys for getting updates from the server. Should only be called for durable clients and with cache server version 5.5 onwards.

Parameters
keysa collection of keys
isDurablewhether the registration should be durable
Exceptions
GemFireIllegalArgumentExceptionIf the collection of keys is empty.
NullReferenceExceptionIf the collection of keys is null.
ArgumentExceptionIf already registered interest for all keys.
GemFireServerExceptionIf an exception is received from the Java cache server.
DotNetty.Transport.Channels.ConnectExceptionif not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it.
TimeoutExceptionif the operation timed out

◆ RegisterRegex() [1/2]

void ISubscriptionService< TKey >.RegisterRegex ( string  regex)

Register interest for the keys of the region that match the given regular expression to get updates from the server.

Parameters
regexthe regular expression to register
Exceptions
GemFireIllegalArgumentExceptionIf the regular expression string is empty.
ArgumentNullExceptionIf the regular expression string is null.
GemFireServerExceptionIf an exception is received from the Java cache server.
GemFireServerExceptionIf an exception is received from the Java cache server.
DotNetty.Transport.Channels.ConnectExceptionif not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it.
GemFireResponseExceptionIf 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.
GemFireInvalidOperationExceptionIf region destroy is pending. This is maps to org.apache.geode.cache.RegionDestroyedException
TimeoutExceptionif the operation timed out

◆ RegisterRegex() [2/2]

void ISubscriptionService< TKey >.RegisterRegex ( string  regex,
bool  isDurable 
)

Register interest for the keys of the region that match the given regular expression to get updates from the server. Should only be called for durable clients and with cache server version 5.5 onwards.

Parameters
regexthe regular expression to register
isDurablewhether the registration should be durable
Exceptions
GemFireIllegalArgumentExceptionIf the regular expression string is empty.
ArgumentNullExceptionIf the regular expression string is null.
GemFireServerExceptionIf an exception is received from the Java cache server.
DotNetty.Transport.Channels.ConnectExceptionif not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it.
GemFireResponseExceptionIf 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.
GemFireInvalidOperationExceptionIf region destroy is pending. This is maps to org.apache.geode.cache.RegionDestroyedException
TimeoutExceptionif the operation timed out

◆ UnregisterAllKeys()

void ISubscriptionService< TKey >.UnregisterAllKeys ( )

Unregister interest for all the keys of the region to stop getting updates for them.

Exceptions
GemFireServerExceptionIf an exception is received from the Java cache server.
DotNetty.Transport.Channels.ConnectExceptionif not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it.
GemFireInvalidOperationExceptionIf region destroy is pending. This is maps to org.apache.geode.cache.RegionDestroyedException
TimeoutExceptionif the operation timed out

◆ UnregisterKeys()

void ISubscriptionService< TKey >.UnregisterKeys ( IReadOnlyCollection< TKey >  keys)

Unregisters a collection of keys to stop getting updates for them.

Parameters
keysthe collection of keys
Exceptions
ArgumentOutOfRangeExceptionIf the collection of keys is empty.
GemFireIllegalArgumentExceptionIf the regular expression string is empty.
ArgumentNullExceptionIf the regular expression string is null.
GemFireServerExceptionIf an exception is received from the Java cache server.
DotNetty.Transport.Channels.ConnectExceptionif not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it.
TimeoutExceptionif the operation timed out

◆ UnregisterRegex()

void ISubscriptionService< TKey >.UnregisterRegex ( string  regex)

Unregister interest for the keys of the region that match the given regular expression to stop getting updates for them. The regular expression must have been registered previously using a RegisterRegex call.

Exceptions
ArgumentNullExceptionIf the regular expression string is null.
GemFireIllegalArgumentExceptionIf the regular expression string is empty.
GemFireServerExceptionIf an exception is received from the Java cache server.
DotNetty.Transport.Channels.ConnectExceptionif not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it.
GemFireInvalidOperationExceptionIf region destroy is pending. This is maps to org.apache.geode.cache.RegionDestroyedException
TimeoutExceptionif the operation timed out

The documentation for this interface was generated from the following file:
  • gemfire.client/Interfaces/ISubscriptionService.cs