Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery.common.java
/
microservice
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8827fb54
authored
Dec 29, 2019
by
Amir Aharon
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add changes from develop conflicts
parent
7a29526c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
README.md
src/main/java/microservice/utils/RestHttpClient.java
README.md
View file @
8827fb54
...
@@ -6,6 +6,14 @@
...
@@ -6,6 +6,14 @@
-
Note on Pulsar topic: can't be nested so after the domain prefix change the / with @
-
Note on Pulsar topic: can't be nested so after the domain prefix change the / with @
e.g: rest path like /domain/apiFamiliy/api1 will be in pubsub /domain/apiFamily@api1
e.g: rest path like /domain/apiFamiliy/api1 will be in pubsub /domain/apiFamily@api1
## 2.1.4
-
connect with undertow 2.0.28
## 2.1.3
-
add date time to ILoggerConsoleImpl
## 2.1.2
-
add config to okhttp client read/connect timeouts
"microservice.http.client.read.timeout.seconds" (30)
"microservice.http.client.connect.timeout.seconds" (10)
## 2.1.1
## 2.1.1
-
downgrade metrics influxdb to fit the reporter on iot jar
-
downgrade metrics influxdb to fit the reporter on iot jar
...
...
src/main/java/microservice/utils/RestHttpClient.java
View file @
8827fb54
...
@@ -88,10 +88,10 @@ public class RestHttpClient extends SimpleRestClient implements Closeable {
...
@@ -88,10 +88,10 @@ public class RestHttpClient extends SimpleRestClient implements Closeable {
private
void
initClient
()
{
private
void
initClient
()
{
client
=
new
OkHttpClient
.
Builder
()
client
=
new
OkHttpClient
.
Builder
()
.
connectTimeout
(
HTTP_SOCKET_CONNECT_TIMEOUT
,
TimeUnit
.
SECONDS
)
.
connectTimeout
(
HTTP_SOCKET_CONNECT_TIMEOUT
,
TimeUnit
.
SECONDS
)
.
writeTimeout
(
10
,
TimeUnit
.
SECONDS
)
.
writeTimeout
(
10
,
TimeUnit
.
SECONDS
)
.
readTimeout
(
HTTP_SOCKET_READ_TIMEOUT
,
TimeUnit
.
SECONDS
)
.
readTimeout
(
HTTP_SOCKET_READ_TIMEOUT
,
TimeUnit
.
SECONDS
)
.
build
();
.
build
();
// httpAsyncClient = createHttpClient();
// httpAsyncClient = createHttpClient();
// httpAsyncClient.start();
// httpAsyncClient.start();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment