blob: 0cb776a042d3f84112471ef4c6f9c2608ebea418 [file] [log] [blame]
Vidyashree Ramae59ada12015-09-28 17:08:31 +05301/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.bgpio.protocol;
17
18import org.jboss.netty.buffer.ChannelBuffer;
Shashikanth VH5dd8dbe2015-11-26 13:22:18 +053019import org.onosproject.bgpio.types.BgpHeader;
Vidyashree Ramae59ada12015-09-28 17:08:31 +053020
21/**
22 * Abstraction of an entity providing BGP Keepalive Message.
23 */
Shashikanth VH5dd8dbe2015-11-26 13:22:18 +053024public interface BgpKeepaliveMsg extends BgpMessage {
Vidyashree Ramae59ada12015-09-28 17:08:31 +053025
26 @Override
Shashikanth VH5dd8dbe2015-11-26 13:22:18 +053027 BgpVersion getVersion();
Vidyashree Ramae59ada12015-09-28 17:08:31 +053028
29 @Override
Shashikanth VH5dd8dbe2015-11-26 13:22:18 +053030 BgpType getType();
Vidyashree Ramae59ada12015-09-28 17:08:31 +053031
32 @Override
33 void writeTo(ChannelBuffer channelBuffer);
34
35 @Override
Shashikanth VH5dd8dbe2015-11-26 13:22:18 +053036 BgpHeader getHeader();
Vidyashree Ramae59ada12015-09-28 17:08:31 +053037
38 /**
39 * Builder interface with get and set functions to build Keepalive message.
40 */
Shashikanth VH5dd8dbe2015-11-26 13:22:18 +053041 interface Builder extends BgpMessage.Builder {
Vidyashree Ramae59ada12015-09-28 17:08:31 +053042 @Override
Shashikanth VH5dd8dbe2015-11-26 13:22:18 +053043 BgpKeepaliveMsg build();
Vidyashree Ramae59ada12015-09-28 17:08:31 +053044
45 @Override
Shashikanth VH5dd8dbe2015-11-26 13:22:18 +053046 Builder setHeader(BgpHeader bgpMsgHeader);
Vidyashree Ramae59ada12015-09-28 17:08:31 +053047 }
48}