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

org.joeyb.undercarriage.grpc.config.GrpcConfig Maven / Gradle / Ivy

package org.joeyb.undercarriage.grpc.config;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import org.immutables.value.Value;
import org.joeyb.undercarriage.grpc.GrpcApplication;

/**
 * {@code GrpcConfig} is the config container for settings needed by the core {@link GrpcApplication}.
 */
@Value.Immutable
@JsonDeserialize(as = ImmutableGrpcConfig.class)
@JsonSerialize(as = ImmutableGrpcConfig.class)
public interface GrpcConfig {

    /**
     * Returns the port that the gRPC server should run on. If the value is 0, then a random available port will be
     * chosen at runtime.
     */
    @Value.Default
    default int port() {
        return 3000;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy