blob: 018724e1e271927156e178adac8a6137c762ae37 [file] [log] [blame]
Brian O'Connor69d6ac72015-05-29 16:24:06 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
Brian O'Connor69d6ac72015-05-29 16:24:06 -07003 *
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.net.intent;
17
Brian O'Connor9476fa12015-06-25 15:17:17 -040018import com.google.common.annotations.Beta;
Brian O'Connor69d6ac72015-05-29 16:24:06 -070019import org.onosproject.event.AbstractEvent;
20
21/**
22 * Partition event.
23 */
24//TODO change String into a proper object type
Brian O'Connor9476fa12015-06-25 15:17:17 -040025@Beta
Madan Jampani1c965102016-01-13 14:34:16 -080026public class IntentPartitionEvent extends AbstractEvent<IntentPartitionEvent.Type, String> {
Brian O'Connor69d6ac72015-05-29 16:24:06 -070027
28 public enum Type {
29 LEADER_CHANGED
30 }
31
Madan Jampani1c965102016-01-13 14:34:16 -080032 public IntentPartitionEvent(Type type, String partition) {
Brian O'Connor69d6ac72015-05-29 16:24:06 -070033 super(type, partition);
34 }
35}