Hello Petr,
Can you provide more details on how your a setting a ‘provided initial size’. ContentBuffer and DEFAULT_SZ are not part of the JCSMP exposed API. As a producer of messages, the application is entirely in control of the message size and backing buffers, so this parameter is not relevant.
Are you trying to control how buffers are allocated for receive? What size messages do you expect to receive on average?
There are some optimizations to avoid excessive reset() in the works already, but currently no plans to make it configurable. If we understood your use case better, we can consider it for a future release.
Thanks,
Ragnar