Commits previously reserved space and builds up the message
Pushes the message to the cluster
Reserves the space for the next message using specified key and value sizes. This may be used to avoid double-copy. Instead of filling the user's buffer and passing it to pushMessage(), the user may call the reserveMessage() and fill the data directly in the internal buffer using reservedKey and reservedValue slices. This function is used internally by pushMessage() function.
Throws an exception in the producer task. This is used to pass the connection exceptions to the user.
Slice from the internal buffer for the key. Note that reserveMessage() must be called first
Slice from the internal buffer for the value. Note that reserveMessage() must be called first
throws exception in the worker task