Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20928
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2013-01-03 13:12 -0800 |
| References | <2b4da3ee-0ca3-456d-ae92-5b36e6e1a769@googlegroups.com> <kc2v2b$1vq$1@dont-email.me> |
| Message-ID | <cbd2def3-2198-49a5-b065-c81b26b7f82f@googlegroups.com> (permalink) |
| Subject | Re: Recommended way to handle ClosedByInterruptException? |
| From | raphfrk@gmail.com |
The idea is to have a thread that handles the actual writing to disk. On shutdown, the thread is interrupted. It then writes any remaining data and then the thread dies. However, with this, if the a .map() call is made after the interrupt, the files closes.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Recommended way to handle ClosedByInterruptException? raphfrk@gmail.com - 2013-01-02 18:43 -0800
Re: Recommended way to handle ClosedByInterruptException? Knute Johnson <nospam@knutejohnson.com> - 2013-01-02 19:48 -0800
Re: Recommended way to handle ClosedByInterruptException? raphfrk@gmail.com - 2013-01-03 13:12 -0800
Re: Recommended way to handle ClosedByInterruptException? Knute Johnson <nospam@knutejohnson.com> - 2013-01-03 15:51 -0800
csiph-web