BUG 2245 - Fixed Redundant Modifier
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / connection / ConnectionConfiguration.java
1 /*
2  * Copyright (c) 2013 Pantheon Technologies s.r.o. 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.openflowjava.protocol.api.connection;
10
11 import java.net.InetAddress;
12
13 import javax.net.ssl.SSLEngine;
14
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.system.rev130927.SwitchIdleEvent;
16
17 /**
18  * @author mirehak
19  *
20  */
21 public interface ConnectionConfiguration {
22
23     /**
24      * @return address to bind, if null, all available interfaces will be used
25      */
26     InetAddress getAddress();
27     
28     /**
29      * @return port to bind
30      */
31     int getPort();
32     
33     /**
34      * @return transport protocol to use
35      */
36     Object getTransferProtocol();
37     
38     /**
39      * @return TLS configuration object
40      */
41     TlsConfiguration getTlsConfiguration();
42     
43     /**
44      * @return silence time (in milliseconds) - after this time {@link SwitchIdleEvent} message is sent upstream 
45      */
46     long getSwitchIdleTimeout();
47     
48     /**
49      * @return seed for {@link SSLEngine}
50      */
51     Object getSslContext();
52     
53     /**
54      * @return thread numbers for TcpHandler's eventloopGroups
55      */
56     ThreadConfiguration getThreadConfiguration();
57 }