Class StreamCutHelper


  • public class StreamCutHelper
    extends java.lang.Object
    Helper class to obtain the current HEAD and TAIL StreamCuts for a given Stream.
    • Method Detail

      • fetchHeadStreamCut

        public java.util.concurrent.CompletableFuture<StreamCut> fetchHeadStreamCut​(Stream stream)
        Obtain the StreamCut pointing to the current HEAD of the Stream.
        Parameters:
        stream - The Stream.
        Returns:
        StreamCut pointing to the HEAD of the Stream.
      • fetchTailStreamCut

        public java.util.concurrent.CompletableFuture<StreamCut> fetchTailStreamCut​(Stream stream)
        Obtain the StreamCut pointing to the current TAIL of the Stream.
        Parameters:
        stream - The Stream.
        Returns:
        StreamCut pointing to the TAIL of the Stream.