qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PROTON-1409) Expose delivery size
Date Wed, 01 Mar 2017 16:33:45 GMT

    [ https://issues.apache.org/jira/browse/PROTON-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15890494#comment-15890494
] 

ASF GitHub Bot commented on PROTON-1409:
----------------------------------------

Github user gemmellr commented on the issue:

    https://github.com/apache/qpid-proton-j/pull/7
  
    The javadoc could do with making a little clearer that it returns the currently unread
length of the existing payload for the delivery, and is not the length of the delivery (which
might not be complete yet) or the buffer containing the contents, which both may differ at
any given time.
    
    A test would be nice so the new public method is at used and folks can see how it is.


> Expose delivery size
> --------------------
>
>                 Key: PROTON-1409
>                 URL: https://issues.apache.org/jira/browse/PROTON-1409
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-j
>            Reporter: clebert suconic
>
> When I'm receiving the Delivery on the broker, I have to pre-create a buffer to copy
the byte array inside the Delivery.
> I would like to have it exposed so I only allocated the required bytes.
> I will follow up with a PR on this



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message