blob: e0e783bf2914df2fb6bed9228c0e3df72f6131bb [file] [log] [blame]
Jonathan Hart5573d322015-01-21 10:13:25 -08001/*
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.store.intent.impl;
17
18import org.onosproject.net.intent.Intent;
19import org.onosproject.net.intent.IntentId;
20import org.onosproject.store.Timestamp;
21
22import java.util.List;
23
24/**
25 * Information published by GossipIntentStore to notify peers of an intent
26 * set installables event.
27 */
28public class InternalSetInstallablesEvent {
29
30 private final IntentId intentId;
31 private final List<Intent> installables;
32 private final Timestamp timestamp;
33
34 public InternalSetInstallablesEvent(IntentId intentId,
35 List<Intent> installables,
36 Timestamp timestamp) {
37 this.intentId = intentId;
38 this.installables = installables;
39 this.timestamp = timestamp;
40 }
41
42 public IntentId intentId() {
43 return intentId;
44 }
45
46 public List<Intent> installables() {
47 return installables;
48 }
49
50 public Timestamp timestamp() {
51 return timestamp;
52 }
53
54 // Needed for serialization.
55 @SuppressWarnings("unused")
56 private InternalSetInstallablesEvent() {
57 intentId = null;
58 installables = null;
59 timestamp = null;
60 }
61}