Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
The consumer maintains TCP connections to the necessary brokers to fetch data.
Failure to close the consumer after use will leak these connections.
To assist in making sure that consumers are closed, please have the Consumer interface extend AutoCloseable.
https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html