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

com.envision.energy.eos.sdk.EventServiceImpl 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;

import java.util.Collection;

class EventServiceImpl implements IEventService {
	@Override
	public void subscribe(IEventHandler handler, Collection customerIDs)
			throws NullPointerException, SubscribeException {
		ProxyManager.INSTANCE.getEventProxy().subscribe(handler, customerIDs);
	}

	@Override
	public void subscribe(IEventHandler handler, Collection siteIDs, Collection codes) throws NullPointerException, SubscribeException {
		ProxyManager.INSTANCE.getEventProxy().subscribe(handler, siteIDs, codes);
	}

	@Override
	public void unsubscribe() throws SubscribeException {
		ProxyManager.INSTANCE.getEventProxy().unsubscribe();
	}

	@Override
	public void unsubscribe(IEventHandler handler) throws SubscribeException {
		ProxyManager.INSTANCE.getEventProxy().unsubscribe(handler);
	}

	@Override
	public void shutdown() {
		ProxyManager.INSTANCE.getEventProxy().shutdown();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy