/* * Copyright (c) 2017 Brocade Communications Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.controller.cluster.datastore.persisted; import com.google.common.collect.ImmutableList; import java.io.Serializable; import java.util.List; import org.eclipse.jdt.annotation.NonNull; /** * Represents the persisted snapshot state for the ShardManager. * * @author Thomas Pantelis */ public final class ShardManagerSnapshot implements Serializable { @java.io.Serial private static final long serialVersionUID = 1L; private final List shardList; public ShardManagerSnapshot(final @NonNull List shardList) { this.shardList = ImmutableList.copyOf(shardList); } public List getShardList() { return shardList; } @java.io.Serial private Object writeReplace() { return new SM(this); } @Override public String toString() { return "ShardManagerSnapshot [ShardList = " + shardList + " ]"; } }