Closed hanslovsky closed 5 years ago
We are currently evaluating this on a development branch (saalfeldlab/paintera#316) and it looks like this PR would solve our issues. What are your thoughts on the test case @tpietzsch?
I'm releasing imglib2-cache 1.0.0-beta-13 with the merged PR
Thanks a lot, very much appreciated!!
Also add IoSync as member to DiskCachedCellImg so it can be shutdown as well.
Fixes #12
Fun fact: I was unable to create a
Writer[]
array (Generic array creation error) and was very confused by it. Now I understand that it is because it's an inner class ofIoSync
, which is generic and thus, Writer is generic, as well.I tested with this small method:
visual vm screenshots
shutdownAfterUse = false
shutdownAfterUse = true
without shutdown:
with shutdown:
This adds the
IoSync
as a member to theDiskCachedCellImg
and breaks the interface of the constructor.