Open topic with navigation

TIBCO Rendezvous® 8.7.0

# TibrvTransport.setBatchSize()

## Declaration

    void setBatchSize(int numBytes)
      throws TibrvException

## Purpose

Enable outbound batching of data from IPM, and set the batch size (in bytes).

## Remarks

This type of batching is available only with the IPM library. It is not available with the standard (daemon-based) Rendezvous library.

When the batch size is greater than zero, IPM transfers data to the network in batches. This option can increase throughput, at the cost of higher latency.

When the batch size is zero, IPM transfers data to the network immediately, for lowest latency.

If you do not explicitly set the batch size using this call, then the default behavior disables outbound batching.

Note | Contraindications These conditions characterize situations in which we do not recommend batching:
| • | Data latency is not acceptable.
| • | Batch behavior does not produce measurable improvements in the performance of your application.

Parameter | Description
`numBytes` | Set the batch size (in bytes). Zero is a special value, which disables batching for the transport.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2023. Cloud Software Group, Inc. All Rights Reserved.