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

com.envisioniot.sub.client.data.IDataService Maven / Gradle / Ivy

There is a newer version: 3.0.3
Show newest version
package com.envisioniot.sub.client.data;

import com.envisioniot.sub.common.exception.SubscribeException;

public interface IDataService {


    /**
     * register data subscription
     * @param handler
     * @param subId
     * @throws SubscribeException
     */
    void subscribe(IDataHandler handler, String subId) throws SubscribeException;

    /**
     * register data subscription with consumerGroup
     * @param handler
     * @param subId
     * @param consumerGroup
     * @throws SubscribeException
     */
    void subscribe(IDataHandler handler, String subId, String consumerGroup) throws SubscribeException;

    /**
     * cancel subscription
     * @throws SubscribeException
     */
    void unsubscribe() throws SubscribeException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy