blob: 1d3cf280ce113e0dbe1b38233497680a17c6407f [file] [log] [blame]
Kalhee Kimba366062017-11-07 16:32:09 +00001/*
2 * Copyright 2017-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.routing.fpm.api;
18
19import org.onosproject.event.AbstractEvent;
20
21/**
22 * Event class for FPM prefix store.
23 */
24public class FpmPrefixStoreEvent extends AbstractEvent<FpmPrefixStoreEvent.Type, FpmRecord> {
25
26 /**
27 * Types of the event.
28 */
29 public enum Type {
30 /**
31 * A Fpm record has been added.
32 */
33 ADD,
34
35 /**
36 * A Fpm record has been removed.
37 */
38 REMOVE
39 }
40
41 /**
42 * Creates a Fpm prefix store event with given data.
43 *
44 * @param type is the type of event
45 * @param subject is the Fpm record of this event
46 */
47 public FpmPrefixStoreEvent(Type type, FpmRecord subject) {
48 super(type, subject);
49 }
50}