NBPollingInputConnector ReadData Method IBM Integration Bus
Called by the Integration Bus to obtain data to be processed.

Namespace: IBM.Broker.Plugin.Connector
Assembly: IBM.Broker.Plugin (in IBM.Broker.Plugin.dll) Version: 9.0.0.0
Syntax

public abstract NBPollingResult ReadData(
	TimeSpan timeout
)

Parameters

timeout
Type: OnlineSystem TimeSpan
The maximum time the method should wait for data before returning.

Return Value

Type: NBPollingResult
A result representing data for processing or a timeout.
Remarks

The method returns when it has data or when the timeout interval has elapsed. It can return early if it wishes, and returning early is preferred over returning late.

If the source you are retrieving data from supports a timed poll mechanism, then make sure it waits for no longer than the given timeout value. However, if the source does not support direct polling, it it better to make a single attempt to get data and then return early rather than code a loop to make repeated attempts at obtaining data. It is also good practice not to call Sleep during this method. Return an NBTimeoutPollingResult instead.

See Also