Skip to content

Commit aba50f2

Browse files
committed
Add javadoc warning, close AsyncHttpClient#291
1 parent ee869a1 commit aba50f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/src/main/java/org/asynchttpclient/handler/resumable/ResumableAsyncHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
* to track how many bytes has been transferred and to properly adjust the file's write position.
4141
* <br>
4242
* In case of a JVM crash/shutdown, you can create an instance of this class and pass the last valid bytes position.
43+
*
44+
* Beware that it registers a shutdown hook, that will cause a ClassLoader leak when used in an appserver and only redeploying the application.
4345
*/
4446
public class ResumableAsyncHandler implements AsyncHandler<Response> {
4547
private final static Logger logger = LoggerFactory.getLogger(TransferCompletionHandler.class);

0 commit comments

Comments
 (0)