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

org.opendaylight.jsonrpc.bus.spi.SCREventExecutorGroup Maven / Gradle / Ivy

There is a newer version: 1.17.1
Show newest version
/*
 * Copyright (c) 2023 PANTHEON.tech, s.r.o. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.jsonrpc.bus.spi;

import io.netty.util.concurrent.DefaultEventExecutorGroup;
import io.netty.util.concurrent.EventExecutorGroup;
import java.util.Map;
import java.util.concurrent.ScheduledExecutorService;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Deactivate;

/**
 * Source of {@link EventExecutorGroup}s for {@link SCRIntegration}.
 */
@Component(factory = SCREventExecutorGroup.FACTORY_NAME,
           service = { EventExecutorGroup.class, ScheduledExecutorService.class })
public final class SCREventExecutorGroup extends DefaultEventExecutorGroup {
    static final String FACTORY_NAME = "org.opendaylight.jsonrpc.bus.spi.SCREventExecutorGroup";

    @Activate
    public SCREventExecutorGroup(Map properties) {
        super(SCRIntegration.size(properties), SCRIntegration.threadFactory(properties));
    }

    @Deactivate
    public void deactivate() {
        super.shutdown();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy