This library claims resources primarily through
this.pool = Executors.newFixedThreadPool(THREAD_POOL_SIZE) //ExecutorService
this.client = new Client() //CloseableHttpClient
The library provides no mechanism for releasing these resources. Consumers of the api should be able to release the resources elegantly when they're finished using Sendgrid.
For reference, see the ExecutorService's documentation for shutting down https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html and the Closeable interface's documentation for closing https://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html
This library claims resources primarily through
The library provides no mechanism for releasing these resources. Consumers of the api should be able to release the resources elegantly when they're finished using Sendgrid.
For reference, see the ExecutorService's documentation for shutting down https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html and the Closeable interface's documentation for closing https://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html