atomic-storage: remove type dependency at segment level I/O
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / src / main / java / org / opendaylight / controller / remote / rpc / registry / gossip / GossipStatus.java
1 /*
2  * Copyright (c) 2017 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.remote.rpc.registry.gossip;
9
10 import akka.actor.Address;
11 import com.google.common.collect.ImmutableMap;
12 import java.io.Serializable;
13 import java.util.Map;
14
15 final class GossipStatus implements Serializable {
16     private static final long serialVersionUID = 1L;
17
18     private final Map<Address, Long> versions;
19     private final Address from;
20
21     GossipStatus(final Address from, final Map<Address, Long> versions) {
22         this.versions = ImmutableMap.copyOf(versions);
23         this.from = from;
24     }
25
26     Address from() {
27         return from;
28     }
29
30     Map<Address, Long> versions() {
31         return versions;
32     }
33 }