com.envision.energy.eos.sdk.EventV2ServiceImpl Maven / Gradle / Ivy
package com.envision.energy.eos.sdk;
import com.envision.energy.eos.exception.SubscribeException;
import java.util.Collection;
/**
* @author yuanyuan.xia
*
* copy from EventServiceImpl
*/
public class EventV2ServiceImpl implements IEventV2Service {
@Override
public void subscribe(IEventV2Handler handler, Collection customerIDs) throws NullPointerException, SubscribeException {
ProxyManager.INSTANCE.getEventProxy().subscribeV2(handler, customerIDs);
}
@Override
public void subscribe(IEventV2Handler handler, Collection siteIDs, Collection codes) throws NullPointerException, SubscribeException {
ProxyManager.INSTANCE.getEventProxy().subscribeV2(handler, siteIDs, codes);
}
@Override
public void unsubscribe() throws SubscribeException {
ProxyManager.INSTANCE.getEventProxy().unsubscribeV2();
}
@Override
public void unsubscribe(IEventV2Handler handler) throws SubscribeException {
ProxyManager.INSTANCE.getEventProxy().unsubscribeV2(handler);
}
@Override
public void shutdown() {
ProxyManager.INSTANCE.getEventProxy().shutdown();
}
}