Enum Class PortSelector
- All Implemented Interfaces:
Serializable,Comparable<PortSelector>,java.lang.constant.Constable
Helps the config parser select only the service ports relevant
to the client's transport security mode (TLS or non-TLS).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetServiceForName(String serviceName) Given the name of a Couchbase service as it appears in the global/bucket config JSON, return the associated ServiceType, or empty if the name is unrecognized or refers to an irrelevant transport.static PortSelectorReturns the enum constant of this class with the specified name.static PortSelector[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TLS
-
NON_TLS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getServiceForName
Given the name of a Couchbase service as it appears in the global/bucket config JSON, return the associated ServiceType, or empty if the name is unrecognized or refers to an irrelevant transport. For example,TLSonly recognizes service names that use a secure transport.
-