ConnectionManager proposal
[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
12 import org.opendaylight.openflowplugin.api.openflow.connection.HandshakeContext;
13 import org.opendaylight.openflowplugin.api.openflow.md.core.HandshakeManager;
14
15 /**
16  * 
17  */
18 public class HandshakeContextImpl implements HandshakeContext {
19
20     private ThreadPoolExecutor handshakePool;
21     private HandshakeManager handshakeManager;
22
23     /**
24      * @param handshakePool
25      * @param handshakeManager
26      */
27     public HandshakeContextImpl(ThreadPoolExecutor handshakePool, HandshakeManager handshakeManager) {
28         this.handshakePool = handshakePool;
29         this.handshakeManager = handshakeManager;
30     }
31
32     @Override
33     public HandshakeManager getHandshakeManager() {
34         return handshakeManager;
35     }
36
37     @Override
38     public ThreadPoolExecutor getHandshakePool() {
39         return handshakePool;
40     }
41
42 }