com.alachisoft.ncache.client.services.MessagingService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ncache-professional-client Show documentation
Show all versions of ncache-professional-client Show documentation
NCache Professional client for java.
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.alachisoft.ncache.client.services;
import com.alachisoft.ncache.client.CacheDataModificationListener;
import com.alachisoft.ncache.client.CacheEventDescriptor;
import com.alachisoft.ncache.runtime.caching.Topic;
import com.alachisoft.ncache.runtime.caching.messaging.TopicSearchOptions;
import com.alachisoft.ncache.runtime.events.EventDataFilter;
import com.alachisoft.ncache.runtime.events.EventType;
import com.alachisoft.ncache.runtime.exceptions.CacheException;
import java.util.EnumSet;
import java.util.concurrent.FutureTask;
/**
* This interface contains properties and methods required for Messaging Service.
*/
public interface MessagingService {
//#region Topic Related
Topic getTopic(String topicName) throws CacheException,IllegalArgumentException;
Topic createTopic(String topicName) throws CacheException,IllegalArgumentException;
void deleteTopic(String topicName) throws CacheException,IllegalArgumentException;
//#endregion
//#region Register Notification Operations
void addCacheNotificationListener(String key, CacheDataModificationListener listener, EnumSet eventType) throws CacheException,IllegalArgumentException;
void addCacheNotificationListener(Iterable keys, CacheDataModificationListener listener, EnumSet eventType) throws CacheException,IllegalArgumentException;
//#endregion
//#region Un-Register Notification Operations
void removeCacheNotificationListener(String key, CacheDataModificationListener listener, EnumSet EventType) throws CacheException,IllegalArgumentException;
void removeCacheNotificationListener(Iterable keys, CacheDataModificationListener listener, EnumSet EventType) throws CacheException,IllegalArgumentException;
//#endregion
}