Inheritance of Receive Spin Limit From Transports to Dispatch

Receive spin limit is a parameter of transports, but its value governs the behavior of two delivery phases.

The receive phase operates at the transport level and takes its receive spin limit directly from the transport definition.

The dispatch phase operates at the event queue level and inherits its receive spin limit as the maximum value over all the transports that feed messages into the event queue (see the following diagram).

Receive Spin Limit, Example with Several Transports

Inline Mode

Regular operation separates the receive and dispatch phases into distinct threads. In contrast, inline mode merges the phases into a single thread, that is, the thread in which the program calls the dispatch method. Accordingly, for inline mode the governing spin limit in both polling phases is the maximum value over all the relevant transports (as mentioned regarding the dispatch phase).