com.envisioniot.sub.client.data.IDataService Maven / Gradle / Ivy
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;
}