@@ -9,9 +9,9 @@ public enum NatsServerConfig {
99 STORE ("MEMORY" , "[STRING] Store type: MEMORY|FILE (default: MEMORY)" ),
1010 DIR (null , "[STRING] For FILE store type, this is the root directory" ),
1111 MAX_CHANNELS ("0" , "[INT] Max number of channels (0 for unlimited)" ),
12- MAX_SUBS ("0" , "[INT] Max number of subscriptions per channel (0 for unlimited)" ),
13- MAX_MSGS ("0" , "[INT] Max number of messages per channel (0 for unlimited)" ),
14- MAX_BYTES ("0" , "[SIZE] Max messages total size per channel (0 for unlimited)" ),
12+ MAX_SUBS (0 , "[INT] Max number of subscriptions per channel (0 for unlimited)" ),
13+ MAX_MSGS (0 , "[INT] Max number of messages per channel (0 for unlimited)" ),
14+ MAX_BYTES (0L , "[SIZE] Max messages total size per channel (0 for unlimited)" ),
1515 MAX_AGE ("0s" , "[DURATION] Max duration a message can be stored (\" 0s\" for unlimited)" ),
1616 MAX_INACTIVITY ("0" , "[DURATION] Max inactivity (no new message, no subscription) after which a channel can be garbage collected (0 for unlimited)" ),
1717 NATS_SERVER (null , "[STRING] Connect to this external NATS Server URL (embedded otherwise)" ),
@@ -51,7 +51,7 @@ public enum NatsServerConfig {
5151
5252 //Streaming Server SQL Store Options
5353 SQL_DRIVER (null , "[STRING] Name of the SQL Driver (\" mysql\" or \" postgres\" )" ),
54- SQL_DATA_SOURCE (null , "[STRING] Datasource used when opening an SQL connection to the database" ),
54+ SQL_SOURCE (null , "[STRING] Datasource used when opening an SQL connection to the database" ),
5555 SQL_NO_CACHING (null , "[BOOL] Enable/Disable caching for improved performance" ),
5656 SQL_MAX_OPEN_CONNS (null , "[INT] Maximum number of opened connections to the database" ),
5757
@@ -62,49 +62,50 @@ public enum NatsServerConfig {
6262 TLS_CLIENT_CACERT (null , "-[STRING] Client certificate CA for the streaming server" ),
6363
6464 //Streaming Server Logging Options
65- STAN_DEBUG (" false" , "[BOOL] Enable STAN debugging output" ),
66- STAN_TRACE (" false" , "[BOOL] Trace the raw STAN protocol" ),
65+ STAN_DEBUG (false , "[BOOL] Enable STAN debugging output" ),
66+ STAN_TRACE (false , "[BOOL] Trace the raw STAN protocol" ),
6767
6868 //NATS Server Options
6969 ADDR ("0.0.0.0" , "[STRING] Bind to host address (default: 0.0.0.0)" ),
70- PORT (" 4222" , "[INT] Use port for clients (default: 4222)" ),
70+ PORT (4222 , "[INT] Use port for clients (default: 4222)" ),
7171 PID (null , "[STRING] File to store PID" ),
7272 HTTP_PORT (null , "[INT] Use port for http monitoring" ),
7373 HTTPS_PORT (null , "[INT] Use port for https monitoring" ),
7474 CONFIG (null , "[STRING] Configuration file" ),
7575
7676 //NATS Server Logging Options
7777 LOG (null , "[STRING] File to redirect log output" ),
78- LOGTIME (" true" , "[BOOL] Timestamp log entries (default: true)" ),
78+ LOGTIME (true , "[BOOL] Timestamp log entries (default: true)" ),
7979 SYSLOG (null , "[STRING] Enable syslog as log method" ),
8080 REMOTE_SYSLOG (null , "[STRING] Syslog server addr (udp://localhost:514)" ),
81- DEBUG (" false" , "[BOOL] Enable debugging output" ),
82- TRACE (" false" , "[BOOL] Trace the raw protocol" ),
81+ DEBUG (false , "[BOOL] Enable debugging output" ),
82+ TRACE (false , "[BOOL] Trace the raw protocol" ),
8383
8484 //NATS Server Authorization Options
8585 USER (null , "[STRING] User required for connections" ),
8686 PASS (null , "[STRING] Password required for connections" ),
8787 AUTH (null , "[STRING] Authorization token required for connections" ),
8888
8989 //TLS Options
90- TLS (" false" , "[BOOL] Enable TLS, do not verify clients (default: false)" ),
90+ TLS (false , "[BOOL] Enable TLS, do not verify clients (default: false)" ),
9191 TLSCERT (null , "[STRING] Server certificate file" ),
92+ TLSKEY (null , "[STRING] Private key for server certificate" ),
9293 TLSVERIFY (null , "[BOOL] Enable TLS, verify client certificates" ),
9394 TLSCACERT (null , "[STRING] Client certificate CA for verification" ),
9495
9596 //NATS Clustering Options
9697 ROUTES (null , "[STRING] Routes to solicit and connect" ),
9798 CLUSTER (null , "[STRING] Cluster URL for solicited routes" );
9899
99- private final String defaultValue ;
100+ private final Object defaultValue ;
100101 private final String description ;
101102
102- NatsServerConfig (String defaultValue , String description ) {
103+ NatsServerConfig (Object defaultValue , String description ) {
103104 this .defaultValue = defaultValue ;
104105 this .description = description ;
105106 }
106107
107- public String getDefaultValue () {
108+ public Object getDefaultValue () {
108109 return defaultValue ;
109110 }
110111
0 commit comments