Search in sources :

Example 1 with AbstractBrokerServiceProxy

use of org.opendaylight.controller.sal.dom.broker.osgi.AbstractBrokerServiceProxy in project controller by opendaylight.

the class ConsumerContextImpl method close.

@Override
public void close() {
    if (closed.compareAndSet(false, true)) {
        Collection<BrokerService> toStop = instantiatedServices.values();
        for (BrokerService brokerService : toStop) {
            if (brokerService instanceof AbstractBrokerServiceProxy<?>) {
                ((AbstractBrokerServiceProxy<?>) brokerService).close();
            }
        }
        broker.consumerSessionClosed(this);
    }
}
Also used : AbstractBrokerServiceProxy(org.opendaylight.controller.sal.dom.broker.osgi.AbstractBrokerServiceProxy) BrokerService(org.opendaylight.controller.sal.core.api.BrokerService)

Aggregations

BrokerService (org.opendaylight.controller.sal.core.api.BrokerService)1 AbstractBrokerServiceProxy (org.opendaylight.controller.sal.dom.broker.osgi.AbstractBrokerServiceProxy)1