All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alachisoft.ncache.client.services.MessagingService Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
/*
 * 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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy