Eliminate GlobalNetconfSshScheduledExecutor
[netconf.git] / netconf / netconf-config / src / main / java / org / opendaylight / netconf / config / GlobalNetconfThreadFactory.java
1 /*
2  * Copyright (c) 2023 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.netconf.config;
9
10 import javax.inject.Inject;
11 import org.eclipse.jdt.annotation.NonNullByDefault;
12 import org.opendaylight.controller.config.threadpool.util.NamingThreadPoolFactory;
13
14 /**
15  * Shared {@link NamingThreadPoolFactory} for {@link GlobalNetconfProcessingExecutor}.
16  */
17 @NonNullByDefault
18 public final class GlobalNetconfThreadFactory extends NamingThreadPoolFactory {
19     public static final String DEFAULT_NAME_PREFIX = "remote-connector-processing-executor";
20
21     public GlobalNetconfThreadFactory(final String namePrefix) {
22         super(namePrefix);
23     }
24
25     @Inject
26     public GlobalNetconfThreadFactory() {
27         this(DEFAULT_NAME_PREFIX);
28     }
29 }