com.envision.energy.eos.sdk.IAlarmService Maven / Gradle / Ivy
package com.envision.energy.eos.sdk;
import com.envision.energy.eos.exception.SubscribeException;
public interface IAlarmService {
/**
* @param handler
* subscribe alarm.
* alarm reading process is in handler.
* new handler will replace the old one.
* @throws NullPointerException
* @throws SubscribeException
*/
void subscribe(IAlarmHandler handler)
throws NullPointerException, SubscribeException;
/**
* unsubscribe alarm.
* if alarm processing is finished, you can subscribe again.
* @throws SubscribeException
*/
void unsubscribe() throws SubscribeException;
//void unsubscribeAll();
void shutdown();
}