Updating fix for bug 3989 based on discussion in OVSDB meeting
[ovsdb.git] / library / impl / src / main / java / org / opendaylight / ovsdb / lib / impl / ChannelConnectionHandler.java
1 /*
2  * Copyright (c) 2014, 2015 EBay Software Foundation 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
9 package org.opendaylight.ovsdb.lib.impl;
10
11 import io.netty.channel.ChannelFuture;
12 import io.netty.channel.ChannelFutureListener;
13
14 import org.opendaylight.ovsdb.lib.OvsdbClient;
15
16 public class ChannelConnectionHandler implements ChannelFutureListener {
17     OvsdbClient client;
18     public ChannelConnectionHandler(OvsdbClient client) {
19         this.client = client;
20     }
21     @Override
22     public void operationComplete(ChannelFuture arg0) throws Exception {
23         OvsdbConnectionService.channelClosed(client);
24     }
25 }