You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,7 @@ You do not need to download and build the source to use the SDK but if you want
66
66
- If `useHttpClientWithConnectionPool` parameter is set to true (default is false), then poolingHttpClientConnection will be enabled
67
67
- In case of poolingHttpConnection, we are initializing connection manager and httpclient once, If any change in value in between the application is running, it will not reflect. need to restart it.
68
68
- Refer to the [PoolingHttpClient Shutdown](README.md#poolinghttpclientshutdown) section below.
69
+
- If`enabledShutdownHook` is true (default is true), enables JVM runtime shutdown hook and execute our shutdown api. This is applicable only when useHttpClientWithConnectionPool is true.
69
70
- Below properties are specific to poolinghttpclient connection, If it is not added in properties file, it will throw config exception.
70
71
Note : Below default values used in properties files are based on our testing application factors such as TPS, CPU, JVM, OS etc
71
72
Before using these values in actual real time application, please consider all real time factors. Refer this link for more detailed explanation.
@@ -166,7 +167,7 @@ try {
166
167
167
168
## PoolingHttpClientShutdown
168
169
In case of PoolingHttpClient Connection, we need to close the connection manager, http client and idle connection cleaner thread when application got shutdown abruptly or gracefully.
169
-
JVM runtime addShutdownHook method will be initialized.
170
+
If `enabledShutdownHook` is true, then JVM runtime addShutdownHook method will be initialized.
170
171
Shutdown Hooks are a special construct that allows developers to plug in a piece of code to be executed when the JVM is shutting down. This comes in handy in cases where we need to do special clean up operations in case the VM is shutting down.
Copy file name to clipboardExpand all lines: zip/README
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -75,9 +75,11 @@ Refer to our Developer's Guide for details <http://apps.cybersource.com/library/
75
75
76
76
l. If "useHttpClientWithConnectionPool" parameter is set to true (default is false), then poolingHttpClientConnection will be enabled.
77
77
- In case of poolingHttpConnection, we are initializing connection manager and httpclient once, If any change in value in between the application is running, it will not reflect. need to restart it.
78
+
79
+
m. If "enabledShutdownHook" is set to true (default is true), enables JVM runtime shutdown hook and execute our shutdown api. This is applicable only when useHttpClientWithConnectionPool is true.
78
80
- Refer to the "PoolingHttpClientShutdown" section below.
79
81
80
-
m. Below properties are specific to poolinghttpclient connection, If it is not added in properties file, it will throw config exception.
82
+
n. Below properties are specific to poolinghttpclient connection, If it is not added in properties file, it will throw config exception.
81
83
Note : Below default values used in properties files are based on our testing application factors such as TPS, CPU, JVM, OS etc
82
84
Before using these values in actual real time application, please consider all real time factors. Refer this link for more detailed explanation.
83
85
- `maxConnections` set the maximum number of total open connections. default value is 200
@@ -89,10 +91,10 @@ Refer to our Developer's Guide for details <http://apps.cybersource.com/library/
89
91
- `evictThreadSleepTimeMs` amount of time in milliseconds between sweeps by the idle connection evictor thread. default value is 3000
90
92
- `maxKeepAliveTimeMs` maximum amount of time in milliseconds that a connaection can be idle before it is evicted from the pool. default value is 30000
91
93
92
-
n. If "merchantConfigCacheEnabled" is set to true (default value is false) it will cache the merchantConfig object based on keyAlias/merchantID
94
+
o. If "merchantConfigCacheEnabled" is set to true (default value is false) it will cache the merchantConfig object based on keyAlias/merchantID
93
95
- If cache enabled is true, for single merchant id, if you change any properties after first initialization, it will not reflect.
94
96
95
-
o. Please refer to the accompanying documentation for the other optional properties that you may wish to specify.
97
+
p. Please refer to the accompanying documentation for the other optional properties that you may wish to specify.
96
98
97
99
##Testing the Client
98
100
1.) Unzip the downloaded zip file into a directory of your choice. It will create a directory called
@@ -148,7 +150,7 @@ try {
148
150
149
151
##PoolingHttpClientShutdown
150
152
In case of PoolingHttpClient Connection, we need to close the connection manager, http client and idle connection cleaner thread when application got shutdown abruptly or gracefully.
151
-
JVM runtime addshutdown hook method will be initialized.
153
+
If "enabledShutdownHook" is true, then JVM runtime addShutdownHook method will be initialized.
152
154
Shutdown Hooks are a special construct that allows developers to plug in a piece of code to be executed when the JVM is shutting down. This comes in handy in cases where we need to do special clean up operations in case the VM is shutting down.
0 commit comments