All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.controller.cluster.raft.persisted.ServerInfo Maven / Gradle / Ivy

There is a newer version: 10.0.4
Show newest version
/*
 * Copyright (c) 2015 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.raft.persisted;

import static java.util.Objects.requireNonNull;

import org.eclipse.jdt.annotation.NonNull;

/**
 * Server information. This class is not directly Serializable, as it is serialized directly as part of
 * {@link ServerConfigurationPayload}.
 *
 * @author Thomas Pantelis
 */
public record ServerInfo(@NonNull String peerId, boolean isVoting) {
    public ServerInfo {
        requireNonNull(peerId);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy