Attila Doroszlai created RATIS-1963:
---------------------------------------

             Summary: Restore ZeroCopyMessageMarhaller#popStream
                 Key: RATIS-1963
                 URL: https://issues.apache.org/jira/browse/RATIS-1963
             Project: Ratis
          Issue Type: Sub-task
          Components: gRPC
    Affects Versions: 3.1.0
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


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

{code}
  /**
   * 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);
  }
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to