Make sure PCEPMessageHeader is threadsafe
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / spi / BGPSessionProposalChecker.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.bgp.rib.impl.spi;
9
10 import org.opendaylight.protocol.bgp.parser.BGPDocumentedException;
11
12 import org.opendaylight.protocol.framework.SessionPreferences;
13 import org.opendaylight.protocol.framework.SessionPreferencesChecker;
14
15 /**
16  * Session characteristics initial proposal checker. BGP does not have any negotiation. If the characteristics are not
17  * acceptable, the session ends.
18  */
19 public abstract class BGPSessionProposalChecker implements SessionPreferencesChecker {
20
21         @Override
22         public abstract Boolean checkSessionCharacteristics(final SessionPreferences openObj) throws BGPDocumentedException;
23 }