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

ASF subversion and git services commented on PROTON-1941:
---------------------------------------------------------

Commit 5217e35eda03a4b5773c07e6b0728edc6f95d8bf in qpid-proton-j's branch 
refs/heads/master from [~gemmellr]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton-j.git;h=5217e35 ]

PROTON-1941: throw BOE in the BB wrapper, preserve historic encoding behaviour 
for compatibility


> Add WritableBuffer API for requesting space when writing complex types
> ----------------------------------------------------------------------
>
>                 Key: PROTON-1941
>                 URL: https://issues.apache.org/jira/browse/PROTON-1941
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-j
>    Affects Versions: proton-j-0.29.0
>            Reporter: Timothy Bish
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: proton-j-0.30.0
>
>
> Add new optional API to WritableBuffer that allows a complex types that has 
> already computed the encoding size to request that the buffer have at least 
> that amount of writable space left before an attempt to encode into that 
> buffers occurs.  This can result in either an early failure of the encode 
> avoiding encoding when the result is bound to fail or the underlying buffer 
> can increase its capacity to accommodate the incoming writes before they 
> happen which can result in less churn as a buffer tries to grow as the 
> complex type gets encoded into it. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to