It would be similar to how WeakHashMap is implemented except it is asynchronous rather than synchronous. If this is done much, then a static instance of a class which performs this action can be used to free AutoCloseables enmasse. Return from the method to terminate the thread. When InterruptedException was not thrown (if it was then just continue), perform ac.close().
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |