blob: 5e7ad015e55cc6b06afb493851ddfab3e667c1d9 [file] [log] [blame]
Niraj Dubeya8287192021-03-23 19:54:17 +05301/*
2 * Copyright 2021-present Open Networking Foundation
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 */
16
17package org.onosproject.bgpmonitoring;
18
19/**
20 * Enum to Provide the Different types of BMP termination message.
21 */
22public enum TerminationType {
23
24 UTF8_STRING(0),
25
26 REASON(1);
27
28 private final int value;
29
30 /**
31 * Assign value with the value val as the types of BMP termination message.
32 *
33 * @param val type of BMP termination message
34 */
35 TerminationType(int val) {
36 value = val;
37 }
38
39 /**
40 * Returns value as type of BMP termination message.
41 *
42 * @return value type of BMP termination message
43 */
44 public int getType() {
45 return value;
46 }
47}