Currently it's defined as
def offsetsForTimes(timestampsToSearch: Map[TopicPartition, Offset]): F[Map[TopicPartition, Option[OffsetAndTimestamp]]]
while working on #122 we agreed with @t3hnar to have following method def for new RebalanceCallback API
def offsetsForTimes[F[_]](
timestampsToSearch: Nem[TopicPartition, Instant]
): RebalanceCallback[F, Map[TopicPartition, Option[OffsetAndTimestamp]]]
The diff is
- usage of
Instant instead of Offset
- usage of
NonEmptyMap instead of regular scala Map (which can be empty)
The same can be applied to corresponding Consumer methods
- offsetsForTimes
- offsetsForTimes with timeout
Currently it's defined as
while working on #122 we agreed with @t3hnar to have following method def for new
RebalanceCallbackAPIThe diff is
Instantinstead ofOffsetNonEmptyMapinstead of regular scalaMap(which can be empty)The same can be applied to corresponding Consumer methods