2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.remote.rpc.registry.gossip;
10 import java.io.Serializable;
12 public class BucketImpl<T extends Copier<T>> implements Bucket<T>, Serializable {
13 private static final long serialVersionUID = 1L;
15 private Long version = System.currentTimeMillis();
20 public Long getVersion() {
26 if (this.data == null)
32 public void setData(T data){
33 this.version = System.currentTimeMillis()+1;
38 public String toString() {
39 return "BucketImpl{" +
40 "version=" + version +