Click or drag to resize
Grid Solutions Framework

BrokerRouterExtensionsLatestOffset Method

Gets the latest offset for a Topic partition.

Namespace: KafkaAdapters
Assembly: KafkaAdapters (in KafkaAdapters.dll) Version: 2.4.182-beta
Syntax
public static long LatestOffset(
	this BrokerRouter router,
	string topic,
	int partitionID = 0
)
View Source

Parameters

router  BrokerRouter
Router used to derive latest offset.
topic  String
Topic to determine latest offset for.
partitionID  Int32  (Optional)
Topic partition to determine latest offset for.

Return Value

Int64
The latest offset for a partition in a topic.

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