How to avoid buffer copies when sending¶
You require absolute maximum performance, and have messages that are guaranteed to be smaller than
Publication.tryClaim instead of
BufferClaim, retrieve it from the
publication.tryClaim and write to it:
1 2 3 4 5
TryClaim allows you to take ownership of a portion of a given length of the active term in the Aeron log buffer. Once you have a valid buffer claim (as detected by the result being > 0), you are able to
wrap your data.
abort() before the unblock timeout (default 15 seconds) occurs.