TibrvRvdTransport.setBatchMode()

Method

Declaration

void setBatchMode(
    int mode)
  throws TibrvException
static final int DEFAULT_BATCH = 0;
static final int TIMER_BATCH = 1;

Purpose

Set the batch mode parameter of a transport.

Remarks

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

The batch mode determines when the transport transmits outbound message data to rvd:

As soon as possible (the initial default for all transports)
Either when its buffer is full, or when a timer interval expires—either event triggers transmission to the daemon

Parameter

Description

mode

Use this value as the new batch mode.

Constant

Description

DEFAULT_BATCH

Default batch behavior. The transport transmits outbound messages to rvd as soon as possible.

This value is the initial default for all transports.

TIMER_BATCH

Timer batch behavior. The transport accumulates outbound messages, and transmits them to rvd in batches—either when its buffer is full, or when a timer interval expires. (Programs cannot adjust the timer interval.)

See Also

Batch Modes for Transports on page 93 in TIBCO Rendezvous Concepts