f867926525012313d61c7aa3b40aa94eaaf2856d
[bgpcep.git] / framework / src / main / java / org / opendaylight / protocol / framework / ProtocolConnection.java
1 /*
2  * Copyright (c) 2013 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.protocol.framework;
9
10 import java.net.InetSocketAddress;
11
12 /**
13  * Specifies connection attributes.
14  */
15 public interface ProtocolConnection {
16
17         /**
18          * Returns address to which the connection should bind.
19          * @return inet socket address
20          */
21         InetSocketAddress getPeerAddress();
22
23         /**
24          * Returns listener for the session.
25          * @return listener for the session
26          */
27         SessionListener getListener();
28
29         /**
30          * Returns session preferences (attributes for Open object).
31          * @return session preferences
32          */
33         SessionPreferences getProposal();
34
35         /**
36          * Returns session preferences checker.
37          * @return session preferences checker
38          */
39         SessionPreferencesChecker getProposalChecker();
40 }