Interface TimeWindow

  • All Implemented Interfaces:

    @DoNotImplement() 
    public interface TimeWindow
    
                        

    Defines an interval on a timeline; not a single, instantaneous point.

    There is no such thing as "exact" time in distributed systems, due to the underlying physics involved, and other issues such as network latency. A time window represents an approximation of an instant with a margin of tolerance, and may be fully bounded.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Instant getFrom() Gets the boundary at which the time window begins.
      abstract Instant getUntil() Gets the boundary at which the time window ends.
      abstract boolean contains(@NotNull() Instant instant) Determines whether the current TimeWindow contains the specified Instant.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getFrom

        @Nullable() abstract Instant getFrom()

        Gets the boundary at which the time window begins.

      • getUntil

        @NotNull() abstract Instant getUntil()

        Gets the boundary at which the time window ends.