Click or drag to resize
Grid Solutions Framework

BrokerRouterExtensionsFetch Method

Fetches a single result for the specified topic and partitionID.

Namespace: KafkaAdapters
Assembly: KafkaAdapters (in KafkaAdapters.dll) Version: 2.4.218-beta
Syntax
public static FetchResponse Fetch(
	this BrokerRouter router,
	string topic,
	int partitionID = 0,
	long offset = 0,
	int maxBytes = 32768
)
View Source

Parameters

router  BrokerRouter
Router used to fetch result.
topic  String
Topic to fetch result from.
partitionID  Int32  (Optional)
Partition ID to fetch result from.
offset  Int64  (Optional)
Offset of topic to begin fetching result.
maxBytes  Int32  (Optional)
Defines maximum size of request that can be adjusted for large serializations.

Return Value

FetchResponse
A FetchResponse instance, if available; otherwise, null.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type BrokerRouter. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also