public interface MessagingService
Modifier and Type | Method | Description |
---|---|---|
CacheEventDescriptor |
addCacheNotificationListener(CacheDataModificationListener listener,
java.util.EnumSet<EventType> eventTypes,
EventDataFilter eventDataFilter) |
Registers cache notification of specified event types against all keys in the cache.
|
void |
addCacheNotificationListener(java.lang.Iterable<java.lang.String> keys,
CacheDataModificationListener listener,
java.util.EnumSet<EventType> eventTypes,
EventDataFilter eventDataFilter) |
Registers cache notification against specified keys in cache.
|
void |
addCacheNotificationListener(java.lang.String key,
CacheDataModificationListener listener,
java.util.EnumSet<EventType> eventTypes,
EventDataFilter eventDataFilter) |
Registers cache notification
EventType of type item added, updated or removed against specified key in cache. |
Topic |
createTopic(java.lang.String topicName) |
Creates and retrieves the topic instance against the specified topic name and priority TopicPriority.Normal.
|
Topic |
createTopic(java.lang.String topicName,
TopicPriority topicPriority) |
Creates and retrieves the topic instance against the specified topic name and priority.
|
void |
deleteTopic(java.lang.String topicName) |
Deletes the topic instance against the specified topic name.
|
java.util.concurrent.FutureTask |
deleteTopicAsync(java.lang.String topicName) |
Deletes the topic instance asynchronously against the specified topic name.
|
Topic |
getTopic(java.lang.String topicName) |
Retrieves the topic instance against the topic name.
|
Topic |
getTopic(java.lang.String topicName,
TopicSearchOptions searchOptions) |
Retrieves the topic instance against the
TopicSearchOptions and provided name or pattern. |
void |
registerCQ(ContinuousQuery query) |
Registers the specified continuous query with the cache server.
|
void |
removeCacheNotificationListener(CacheEventDescriptor descriptor) |
Unregisters a cache level event that may have been registered.
|
void |
removeCacheNotificationListener(java.lang.Iterable<java.lang.String> keys,
CacheDataModificationListener listener,
java.util.EnumSet<EventType> eventTypes) |
Unregisters cache notification against specified keys in cache.
|
void |
removeCacheNotificationListener(java.lang.String key,
CacheDataModificationListener listener,
java.util.EnumSet<EventType> eventTypes) |
Unregisters the
CacheDataModificationListener already registered for the specified key. |
void |
unRegisterCQ(ContinuousQuery query) |
Unregisters an already registered continuous query to deactivate it on the cache server.
|
Topic getTopic(java.lang.String topicName) throws CacheException, java.lang.IllegalArgumentException
topicName
- Name to identify topic.CacheException
- So you can catch this exception for all the exceptions thrown from within the NCache.java.lang.IllegalArgumentException
Topic getTopic(java.lang.String topicName, TopicSearchOptions searchOptions) throws CacheException, java.lang.IllegalArgumentException
TopicSearchOptions
and provided name or pattern.topicName
- Name or pattern to identify topic.searchOptions
- TopicSearchOptions
specifies to search topic by name or pattern.CacheException
- So you can catch this exception for all the exceptions thrown from within the NCache.java.lang.IllegalArgumentException
Topic createTopic(java.lang.String topicName, TopicPriority topicPriority) throws CacheException, java.lang.IllegalArgumentException
topicName
- Name to identify the topic.topicPriority
- Specifies the relative priority of the topic stored in cache.CacheException
- So you can catch this exception for all the exceptions thrown from within the NCache.java.lang.IllegalArgumentException
Topic createTopic(java.lang.String topicName) throws CacheException, java.lang.IllegalArgumentException
topicName
- Name to identify the topic.CacheException
- So you can catch this exception for all the exceptions thrown from within the NCache.java.lang.IllegalArgumentException
void deleteTopic(java.lang.String topicName) throws CacheException, java.lang.IllegalArgumentException
topicName
- Name to identify topic.CacheException
- So you can catch this exception for all the exceptions thrown from within the NCache.java.lang.IllegalArgumentException
java.util.concurrent.FutureTask deleteTopicAsync(java.lang.String topicName) throws CacheException, java.lang.IllegalArgumentException
topicName
- Name to identify topic.FutureTask
can be used to determine status of the task i.e. isDone(), isCancelled().CacheException
- So you can catch this exception for all the exceptions thrown from within the NCache.java.lang.IllegalArgumentException
void registerCQ(ContinuousQuery query) throws CacheException, java.lang.IllegalArgumentException
query
- SQL-like query to be executed on cache.CacheException
- So you can catch this exception for all the exceptions thrown from within the NCache.java.lang.IllegalArgumentException
void addCacheNotificationListener(java.lang.String key, CacheDataModificationListener listener, java.util.EnumSet<EventType> eventTypes, EventDataFilter eventDataFilter) throws CacheException, java.lang.IllegalArgumentException
EventType
of type item added, updated or removed against specified key in cache.key
- Unique key to identify the cache item.listener
- The specific method of interface CacheDataModificationListener
is invoked when specified event/events are triggered against specified key in cache.eventTypes
- An Enumset that specifies which event/ events are to be registered against the key.eventDataFilter
- Tells whether to receive metadata, data with metadata or none when a notification is triggered.CacheException
- So you can catch this exception for all the exceptions thrown from within the NCache.java.lang.IllegalArgumentException
void addCacheNotificationListener(java.lang.Iterable<java.lang.String> keys, CacheDataModificationListener listener, java.util.EnumSet<EventType> eventTypes, EventDataFilter eventDataFilter) throws CacheException, java.lang.IllegalArgumentException
keys
- Iterable
list of keys to identify the cache item.listener
- The specific method of interface CacheDataModificationListener
is invoked when specified event/events are triggered against specified key in cache.eventTypes
- An Enumset that specifies which event/ events are to be registered against the key.eventDataFilter
- Tells whether to receive metadata, data with metadata or none when a notification is triggered.CacheException
java.lang.IllegalArgumentException
CacheEventDescriptor addCacheNotificationListener(CacheDataModificationListener listener, java.util.EnumSet<EventType> eventTypes, EventDataFilter eventDataFilter) throws CacheException, java.lang.IllegalArgumentException
listener
- The specific method of interface CacheDataModificationListener
is invoked when specified event/events are triggered against specified key in cache.eventTypes
- An Enumset that specifies which event/ events are to be registered against the key.eventDataFilter
- Tells whether to receive metadata, data with metadata or none when a notification is triggered.CacheEventDescriptor
required to unregister the notifications.CacheException
- So you can catch this exception for all the exceptions thrown from within the NCache.java.lang.IllegalArgumentException
void unRegisterCQ(ContinuousQuery query) throws java.lang.Exception
query
- SQL-like query to be executed over the cache.java.lang.Exception
- So you can catch this exception for all the exceptions thrown from within the NCache.void removeCacheNotificationListener(CacheEventDescriptor descriptor) throws java.lang.Exception
descriptor
- The descriptor returned when the general event was registered.java.lang.Exception
- So you can catch this exception for all the exceptions thrown from within the NCache.void removeCacheNotificationListener(java.lang.String key, CacheDataModificationListener listener, java.util.EnumSet<EventType> eventTypes) throws CacheException, java.lang.IllegalArgumentException
CacheDataModificationListener
already registered for the specified key.key
- Unique key to identify the cache item.listener
- The CacheDataModificationListener
that is invoked when specified event/events are triggered in cache.eventTypes
- An Enumset that specifies which event/ events are to be unregistered against the key.CacheException
- So you can catch this exception for all the exceptions thrown from within the NCache.java.lang.IllegalArgumentException
void removeCacheNotificationListener(java.lang.Iterable<java.lang.String> keys, CacheDataModificationListener listener, java.util.EnumSet<EventType> eventTypes) throws CacheException, java.lang.IllegalArgumentException
keys
- Iterable
list of keys to identify the cache item.listener
- The CacheDataModificationListener
that is invoked when specified event/events are triggered in cache.eventTypes
- An Enumset that specifies which event/ events are to be unregistered against the key.CacheException
- So you can catch this exception for all the exceptions thrown from within the NCache.java.lang.IllegalArgumentException