com.envision.energy.eos.sdk.EventServiceImpl Maven / Gradle / Ivy
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();
}
}