X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fconfig%2Fnetty-threadgroup-config%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyang%2Fnetty%2Fthreadgroup%2FNettyThreadgroupModule.java;h=06c9ae885d15e13625c42746f13940a944b83271;hb=f04d241578740473fc8b9f17fe38db6f8ea17f02;hp=9ceef3116ac5603219c019eb2fd21d340e23dcca;hpb=5da475147b19f8d9e601813da1e356f2c677d131;p=controller.git diff --git a/opendaylight/config/netty-threadgroup-config/src/main/java/org/opendaylight/controller/config/yang/netty/threadgroup/NettyThreadgroupModule.java b/opendaylight/config/netty-threadgroup-config/src/main/java/org/opendaylight/controller/config/yang/netty/threadgroup/NettyThreadgroupModule.java index 9ceef3116a..06c9ae885d 100644 --- a/opendaylight/config/netty-threadgroup-config/src/main/java/org/opendaylight/controller/config/yang/netty/threadgroup/NettyThreadgroupModule.java +++ b/opendaylight/config/netty-threadgroup-config/src/main/java/org/opendaylight/controller/config/yang/netty/threadgroup/NettyThreadgroupModule.java @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2013 Cisco Systems, Inc. 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 + */ + /** * Generated file @@ -13,6 +21,8 @@ import io.netty.channel.nio.NioEventLoopGroup; import org.opendaylight.controller.config.api.JmxAttributeValidationException; +import java.util.concurrent.TimeUnit; + /** * */ @@ -53,7 +63,7 @@ public final class NettyThreadgroupModule extends org.opendaylight.controller.co @Override public void close() throws Exception { - shutdownGracefully(); + shutdownGracefully(0, 1, TimeUnit.SECONDS); } } }