Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8331420

Add LIFO for BaseStream.onClose()

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :

      A lot of close and cleanup operations prefer last-in first-out (LIFO). BaseStream.onClose(h) registers handlers so that they are invoked first-in first-out (FIFO). It would be nice if there was a version that let me register things LIFO.
      I propose a new method be added that looks like this:
      BaseStream.onClose(Runnable h, boolean lifo)
      and if lifo is set to true then that handler gets run before all other registered handlers.



            vklang Viktor Klang
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: