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