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

com.envision.energy.eos.sdk.IAlarmService Maven / Gradle / Ivy

There is a newer version: 3.0.3
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy