Get rid of JSR305 annotations
[bgpcep.git] / bgp / rib-spi / src / main / java / org / opendaylight / protocol / bgp / rib / spi / state / BGPSessionState.java
1 /*
2  * Copyright (c) 2016 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.bgp.rib.spi.state;
9
10 import org.eclipse.jdt.annotation.NonNullByDefault;
11 import org.opendaylight.protocol.bgp.rib.spi.State;
12
13 /**
14  * BGP Operational Session State.
15  */
16 @NonNullByDefault
17 public interface BGPSessionState {
18     /**
19      * Internal session state.
20      *
21      * @return Internal session state
22      */
23     State getSessionState();
24
25     /**
26      * Additional Path capability.
27      *
28      * @return true if supported
29      */
30     boolean isAddPathCapabilitySupported();
31
32     /**
33      * AS 4 Bytes capability.
34      *
35      * @return true if supported
36      */
37     boolean isAsn32CapabilitySupported();
38
39     /**
40      * Graceful Restart.
41      *
42      * @return true if supported
43      */
44     boolean isGracefulRestartCapabilitySupported();
45
46     /**
47      * Multiprotocol capability.
48      *
49      * @return true if supported
50      */
51     boolean isMultiProtocolCapabilitySupported();
52
53     /**
54      * Router Refresh Capability.
55      *
56      * @return true if supported
57      */
58     boolean isRouterRefreshCapabilitySupported();
59 }