blob: 8dd3b44d21467ec518656ae02eb21cbe11105032 [file] [log] [blame]
Madan Jampani312a2982014-10-14 21:07:16 -07001package org.onlab.onos.store.host.impl;
2
3import org.onlab.onos.net.HostId;
4import org.onlab.onos.store.Timestamp;
5
6/**
7 * Information published by GossipHostStore to notify peers of a host
8 * removed event.
9 */
10public class InternalHostRemovedEvent {
11
12 private final HostId hostId;
13 private final Timestamp timestamp;
14
15 public InternalHostRemovedEvent(HostId hostId, Timestamp timestamp) {
16 this.hostId = hostId;
17 this.timestamp = timestamp;
18 }
19
20 public HostId hostId() {
21 return hostId;
22 }
23
24 public Timestamp timestamp() {
25 return timestamp;
26 }
27
28 // for serialization.
29 @SuppressWarnings("unused")
30 private InternalHostRemovedEvent() {
31 hostId = null;
32 timestamp = null;
33 }
34}