blob: dfdd8f7124b7f83dfdaf68c916525fb6b62ad2eb [file] [log] [blame]
Daniele Moro94660a02019-12-02 12:02:07 -08001/*
Joey Armstronga68e7852024-01-28 13:27:02 -05002 * Copyright 2019-2024 Open Networking Foundation (ONF) and the ONF Contributors
Daniele Moro94660a02019-12-02 12:02:07 -08003 *
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.opencord.bng;
18
19import org.onosproject.event.AbstractEvent;
20
21/**
22 * Represents an event related to attachment-level statistics.
23 */
24public final class BngStatsEvent extends
25 AbstractEvent<BngStatsEvent.EventType, BngStatsEventSubject> {
26
27 /**
28 * Creates an attachment-level statistics event.
29 *
30 * @param type Event type
31 * @param subject Event subject
32 */
33 public BngStatsEvent(EventType type, BngStatsEventSubject subject) {
34 super(type, subject);
35 }
36
37 /**
38 * Type of the event.
39 */
40 public enum EventType {
41 /**
42 * Signals that the statistics has been updated.
43 */
44 STATS_UPDATED
45 }
46}