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

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

/**
 * @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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy