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

com.hedera.node.config.NetworkProperty Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2023-2024 Hedera Hashgraph, LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.hedera.node.config;

import static java.lang.annotation.ElementType.RECORD_COMPONENT;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import com.swirlds.config.api.ConfigProperty;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * Annotates a specific configuration property (annotated with {@link ConfigProperty}) as being a property common to
 * all nodes on the network. Such properties are expected to be saved in state. These properties must be the
 * same on all nodes in the network, or they will ISS at some point. This annotation is mutually exclusive with
 * {@link NodeProperty}.
 */
@Retention(RUNTIME)
@Target(RECORD_COMPONENT)
public @interface NetworkProperty {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy