Skip to content

Use java.time.Duration for atMostEvery in LoggingApi. #325

@nstandif

Description

@nstandif

Presently, atMostEvery only supports int and java.util.concurrent.TimeUnit. However, the parameters become inconvenient to use for java.time.Duration. Additionally, when using java.time.Duration#toNanos and TimeUnit#NANOSECONDS, the field gets truncated to an int`. This causes the implementer of the duration field to explicitly field depth to avoid overflow, which can become awkward.

I would like atMostEvery to support java.time.Duration, rather than it's present args. This would make more sense on an usability standpoint of this API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions