T - The value type of the option when configuring a value programmaticallypublic final class Option<T> extends Object
 Note that Connection URL Parsing cannot access Option type information T due to Java's type erasure. Options configured by URL parsing are represented as String values.
ConnectionFactoryOptions| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o)  | 
int | 
hashCode()  | 
String | 
name()
Returns the name of the option. 
 | 
static <T> Option<T> | 
sensitiveValueOf(String name)
Returns a constant singleton instance of the sensitive option. 
 | 
String | 
toString()  | 
static <T> Option<T> | 
valueOf(String name)
Returns a constant singleton instance of the option. 
 | 
public static <T> Option<T> sensitiveValueOf(String name)
T - the value type of the optionname - the name of the option to returnIllegalArgumentException - if name is null or emptypublic static <T> Option<T> valueOf(String name)
T - the value type of the optionname - the name of the option to returnIllegalArgumentException - if name is null or emptypublic String name()
Copyright © 2020. All rights reserved.