Enum ServiceRegistrationMode
- java.lang.Object
-
- java.lang.Enum<ServiceRegistrationMode>
-
- org.lognet.springboot.grpc.autoconfigure.consul.ServiceRegistrationMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ServiceRegistrationMode>,ServiceRegistrationStrategy
public enum ServiceRegistrationMode extends java.lang.Enum<ServiceRegistrationMode> implements ServiceRegistrationStrategy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOOPSINGLE_SERVER_WITH_CHECK_PER_SERVICESINGLE_SERVER_WITH_GLOBAL_CHECKSTANDALONE_SERVICES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServiceRegistrationModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ServiceRegistrationMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.lognet.springboot.grpc.autoconfigure.consul.ServiceRegistrationStrategy
clone, createServices
-
-
-
-
Enum Constant Detail
-
NOOP
public static final ServiceRegistrationMode NOOP
-
SINGLE_SERVER_WITH_GLOBAL_CHECK
public static final ServiceRegistrationMode SINGLE_SERVER_WITH_GLOBAL_CHECK
-
SINGLE_SERVER_WITH_CHECK_PER_SERVICE
public static final ServiceRegistrationMode SINGLE_SERVER_WITH_CHECK_PER_SERVICE
-
STANDALONE_SERVICES
public static final ServiceRegistrationMode STANDALONE_SERVICES
-
-
Method Detail
-
values
public static ServiceRegistrationMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ServiceRegistrationMode c : ServiceRegistrationMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceRegistrationMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-