Interface Input

All Known Implementing Classes:
AtomicInput, BlockingSegmentInput, CycleArray, CycleLogInput, InputInterval

public interface Input
  • Method Summary

    Modifier and Type
    Method
    Description
    getInputSegment(int segmentLength)
    Return the next InputSegment available, or null if none were available.
    default boolean
     
  • Method Details

    • getInputSegment

      CycleSegment getInputSegment(int segmentLength)
      Return the next InputSegment available, or null if none were available. This method is required to be thread safe.

      All implementations of this method are required to be thread-safe.

      Parameters:
      segmentLength - The number of cycles (not necessarily contiguous) in the segment.
      Returns:
      a segment, or null if none available.
    • isContiguous

      default boolean isContiguous()