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

com.netflix.conductor.grpc.server.GRPCServerConfiguration Maven / Gradle / Ivy

There is a newer version: 3.15.0
Show newest version
package com.netflix.conductor.grpc.server;

import com.netflix.conductor.core.config.Configuration;

public interface GRPCServerConfiguration extends Configuration {
    String ENABLED_PROPERTY_NAME = "conductor.grpc.server.enabled";
    boolean ENABLED_DEFAULT_VALUE = false;

    String PORT_PROPERTY_NAME = "conductor.grpc.server.port";
    int PORT_DEFAULT_VALUE = 8090;

    String SERVICE_REFLECTION_ENABLED_PROPERTY_NAME = "conductor.grpc.server.reflection.enabled";
    boolean SERVICE_REFLECTION_ENABLED_DEFAULT_VALUE = true;

    default boolean isEnabled(){
       return getBooleanProperty(ENABLED_PROPERTY_NAME, ENABLED_DEFAULT_VALUE);
    }

    default int getPort(){
        return getIntProperty(PORT_PROPERTY_NAME, PORT_DEFAULT_VALUE);
    }

    default boolean isReflectionEnabled() {
        return getBooleanProperty(SERVICE_REFLECTION_ENABLED_PROPERTY_NAME, SERVICE_REFLECTION_ENABLED_DEFAULT_VALUE);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy