mattermost4j
mattermost4j copied to clipboard
Set the connection timeout and read timeout
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