Spring Boot Starter module will enable your Spring Boot application to work with Zenvia CPaaS SDK Client with Apache.
- An Zenvia account
- An api token
For Apache Maven:
<dependency>
<groupId>com.zenvia</groupId>
<artifactId>zenvia-api-sdk-starter-client-apache</artifactId>
<version>1.1.0</version>
</dependency>
For Gradle:
dependencies {
implementation group: 'com.zenvia', name: 'zenvia-api-sdk-starter-client-apache', version: '1.1.0'
}
You can configure your applications properties with environment variables, system properties, or configuration files. Take a look at the Spring Boot documentation for more details.
The property apiToken
is required to the Client be auto-created.
Property | Default | Details |
---|---|---|
zenvia.api.sdk.client.apiToken | N/A | Your api token |
zenvia.api.sdk.client.apiUrl | https://api.zenvia.com | The URL for the API service. Usually the default value is used, but change it can be useful for testing |
zenvia.api.sdk.client.maxConnections | 100 | The maximum number of connections the pool can have |
zenvia.api.sdk.client.connectionTimeout | 25000 | The amount of time in milliseconds for a connection attempt to timeout |
zenvia.api.sdk.client.socketTimeout | 60000 | The amount of time in milliseconds for a server reply to timeout |
zenvia.api.sdk.client.maxConnectionRetries | 4 | The maximum amount of connection retries automatically made by the HTTP client in case of connection failure |
zenvia.api.sdk.client.connectionPoolTimeout | 0 | The amount of time in milliseconds for a request to timeout when wait for a free connection from the pool. When zero, it means it will wait indefinitely for a connection |
zenvia.api.sdk.client.inactivityTimeBeforeStaleCheck | 5000 | The amount of time in milliseconds of inactivity necessary to trigger a stale check on idle pool connections |