Class PositionImpl

    • Field Detail

      • ledgerId

        protected long ledgerId
      • entryId

        protected long entryId
      • ackSet

        protected long[] ackSet
    • Method Detail

      • get

        public static PositionImpl get​(long ledgerId,
                                       long entryId)
      • get

        public static PositionImpl get​(long ledgerId,
                                       long entryId,
                                       long[] ackSet)
      • getAckSet

        public long[] getAckSet()
      • setAckSet

        public void setAckSet​(long[] ackSet)
      • getNext

        public PositionImpl getNext()
        Description copied from interface: Position
        Get the position of the entry next to this one. The returned position might point to a non-existing, or not-yet existing entry
        Specified by:
        getNext in interface Position
        Returns:
        the position of the next logical entry
      • toString

        public java.lang.String toString()
        String representation of virtual cursor - LedgerId:EntryId.
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(PositionImpl other)
        Specified by:
        compareTo in interface java.lang.Comparable<PositionImpl>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hasAckSet

        public boolean hasAckSet()