2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.config.yang.netty.threadgroup;
10 import io.netty.channel.nio.NioEventLoopGroup;
11 import java.util.concurrent.TimeUnit;
13 abstract class AbstractGlobalGroup extends NioEventLoopGroup implements AutoCloseable {
14 AbstractGlobalGroup(final int threadCount) {
15 super(threadCount < 0 ? 0 : threadCount);
19 public final void close() {
20 shutdownGracefully(0, 1, TimeUnit.SECONDS);