/// <summary> /// Get list of partitions and the maximum offsets prior to the given time. This functionality /// depends on the Kafka Broker settings that control log segment file rolling. These settings are log.roll.hours and log.segment.bytes /// If these are set too high, and new segment files are not created often, this method will tend to return very coarse results. /// </summary> /// <param name="topic"></param> /// <param name="startDateTime"></param> /// <returns></returns> public Task <TopicPartitionOffsets> FetchPartitionOffsetsAsync(string topic, DateTimeOffset startDateTime) { return(FetchPartitionOffsetsImplAsync(topic, startDateTime.DateTimeToEpochMilliseconds())); }
/// <summary> /// Get list of partitions and the maximum offsets prior to the given time. This functionality /// depends on the Kafka Broker settings that control log segment file rolling. These settings are log.roll.hours and log.segment.bytes /// If these are set too high, and new segment files are not created often, this method will tend to return very coarse results. /// </summary> /// <param name="topic"></param> /// <param name="startDateTime"></param> /// <returns></returns> public Task<TopicPartitionOffsets> FetchPartitionOffsetsAsync(string topic, DateTimeOffset startDateTime) { return FetchPartitionOffsetsImplAsync(topic, startDateTime.DateTimeToEpochMilliseconds()); }