Interface Span


public interface Span
Since:
5.0
Author:
Christoph Strobl
  • Method Summary

    Modifier and Type
    Method
    Description
    static Span
    of(Duration duration)
    Simple factory to create a Span for the given Duration.
    Defines the time between timestamps in the same bucket in a range between 1-31.536.000 seconds.
  • Method Details

    • time

      Duration time()
      Defines the time between timestamps in the same bucket in a range between 1-31.536.000 seconds.
    • of

      static Span of(Duration duration)
      Simple factory to create a Span for the given Duration.
      Parameters:
      duration - time between timestamps
      Returns:
      new instance of Span.