Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-620

IoSession has superfluous close() methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-M1, 2.0.0-M2, 2.0.0-M3
    • 2.0.0-M4
    • Core
    • None

    Description

      IoSession has three methods for closing the session: close() which closes immediately, closeOnFlush(), which closes after last queued write is complete and close(boolean) which can be set to do either.

      The two first variants should be removed and close(boolean) retained to make the API cleaner. Also, having a single close(boolean) method forces the user to think about the issue of closing immediately versus closing after last queued write.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tazle Tuure Laurinolli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: