Allow to configure number of threads used by Netty's EventLoopGroups
[openflowjava.git] / openflow-protocol-it / src / test / java / org / opendaylight / openflowjava / protocol / it / integration / ConnectionConfigurationImpl.java
index 17058269439a977735cbf637476224413c05e393..d0a76c8f95884d75f15ad81dbd4f67565f2748a7 100644 (file)
@@ -11,6 +11,7 @@ package org.opendaylight.openflowjava.protocol.it.integration;
 import java.net.InetAddress;
 
 import org.opendaylight.openflowjava.protocol.api.connection.ConnectionConfiguration;
+import org.opendaylight.openflowjava.protocol.api.connection.ThreadConfiguration;
 import org.opendaylight.openflowjava.protocol.api.connection.TlsConfiguration;
 
 /**
@@ -24,6 +25,7 @@ public class ConnectionConfigurationImpl implements ConnectionConfiguration {
     private Object transferProtocol;
     private TlsConfiguration tlsConfig;
     private long switchIdleTimeout;
+    private ThreadConfiguration threadConfig;
 
     /**
      * Creates {@link ConnectionConfigurationImpl}
@@ -70,4 +72,15 @@ public class ConnectionConfigurationImpl implements ConnectionConfiguration {
         return tlsConfig;
     }
 
-}
+    @Override
+    public ThreadConfiguration getThreadConfiguration() {
+        return threadConfig;
+    }
+
+    /**
+     * @param threadConfig thread model configuration (configures threads used)
+     */
+    public void setThreadConfiguration(ThreadConfiguration threadConfig) {
+        this.threadConfig = threadConfig;
+    }
+}
\ No newline at end of file