BUG 2245 - Fixed Redundant Modifier
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / connection / ConnectionConfiguration.java
index 16ffde3cbe0142d313b1dc8fda0a0b628f1f36af..6a61b5857afa2b402c5d34233f5e8186d7e28d92 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+/*
+ * Copyright (c) 2013 Pantheon Technologies s.r.o. 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,
@@ -10,42 +10,48 @@ package org.opendaylight.openflowjava.protocol.api.connection;
 
 import java.net.InetAddress;
 
+import javax.net.ssl.SSLEngine;
+
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.system.rev130927.SwitchIdleEvent;
+
 /**
  * @author mirehak
  *
  */
 public interface ConnectionConfiguration {
+
+    /**
+     * @return address to bind, if null, all available interfaces will be used
+     */
+    InetAddress getAddress();
+    
+    /**
+     * @return port to bind
+     */
+    int getPort();
     
     /**
-     * connection functionality support types
+     * @return transport protocol to use
      */
-    public enum FEATURE_SUPPORT {
-        /** feature is not supported at all */
-        NOT_SUPPORTED,
-        /** feature is supported */
-        SUPPORTED,
-        /** feature is supported and has to be used by clients */
-        REQUIRED
-    }
+    Object getTransferProtocol();
     
     /**
-     * @return address to bind, if null, all available interfaces will be used
+     * @return TLS configuration object
      */
-    public InetAddress getAddress();
+    TlsConfiguration getTlsConfiguration();
     
     /**
-     * @return port to bind
+     * @return silence time (in milliseconds) - after this time {@link SwitchIdleEvent} message is sent upstream 
      */
-    public int getPort();
+    long getSwitchIdleTimeout();
     
     /**
-     * @return transport protocol to use
+     * @return seed for {@link SSLEngine}
      */
-    public Object getTransferProtocol();
+    Object getSslContext();
     
     /**
-     * @return encryption feature support
+     * @return thread numbers for TcpHandler's eventloopGroups
      */
-    public FEATURE_SUPPORT getTlsSupport();
-
-}
+    ThreadConfiguration getThreadConfiguration();
+}
\ No newline at end of file