Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1931 Support Zero-Copy in ratis-grpc
  3. RATIS-1963

Restore ZeroCopyMessageMarhaller#popStream

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.1
    • 3.0.1
    • gRPC
    • None

    Description

      RATIS-1939 refactored ZeroCopyMessageMarshaller, replacing popStream(T) with release(T). For compatibility with 3.0.0, I would like to add back popStream:

        /**
         * Application needs to call this function to get the stream for the message and
         * call stream.close() function to return it to the pool.
         */
        public InputStream popStream(T message) {
          return unclosedStreams.remove(message);
        }
      

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h