Class IntervalTimeline.Interval

java.lang.Object
me.ahoo.cosid.sharding.IntervalTimeline.Interval
Enclosing class:
IntervalTimeline

public static class IntervalTimeline.Interval extends Object
Represents a time interval with an associated node name.
  • Constructor Details

    • Interval

      public Interval(LocalDateTime lower, String node)
      Creates an interval.
      Parameters:
      lower - the lower bound of the interval
      node - the associated node name
  • Method Details

    • getLower

      public LocalDateTime getLower()
      Gets the lower bound.
      Returns:
      the lower bound
    • getNode

      public String getNode()
      Gets the node name.
      Returns:
      the node name