Merge "Bug 6235 - Cookie compare in FlowRegistryKeyFactory"
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / connection / HandshakeContextImpl.java
1 /**
2  * Copyright (c) 2015 Cisco Systems, Inc. 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.openflowplugin.impl.connection;
9
10 import java.util.concurrent.ThreadPoolExecutor;
11 import org.opendaylight.openflowplugin.api.openflow.connection.HandshakeContext;
12 import org.opendaylight.openflowplugin.api.openflow.md.core.HandshakeManager;
13
14 /**
15  *
16  */
17 public class HandshakeContextImpl implements HandshakeContext {
18     private ThreadPoolExecutor handshakePool;
19     private HandshakeManager handshakeManager;
20
21     /**
22      * @param handshakePool
23      * @param handshakeManager
24      */
25     public HandshakeContextImpl(ThreadPoolExecutor handshakePool, HandshakeManager handshakeManager) {
26         this.handshakePool = handshakePool;
27         this.handshakeManager = handshakeManager;
28     }
29
30     @Override
31     public HandshakeManager getHandshakeManager() {
32         return handshakeManager;
33     }
34
35     @Override
36     public ThreadPoolExecutor getHandshakePool() {
37         return handshakePool;
38     }
39
40     @Override
41     public void close() {
42     }
43 }