mattermost4j icon indicating copy to clipboard operation
mattermost4j copied to clipboard

Set the connection timeout and read timeout

Open MohamedEL59 opened this issue 6 years ago • 0 comments

Hello,

It's possible to add connection timeout and read timeout in the method postByIncomingWebhook, example for class IncomingWebhookClient:

Client client = ClientBuilder.newClient();
client.property(ClientProperties.CONNECT_TIMEOUT, 1000);
client.property(ClientProperties.READ_TIMEOUT,    1000);
WebTarget target = client.target("url");

Best regards, Mohamed

MohamedEL59 avatar Dec 18 '18 10:12 MohamedEL59