Class WireCommands.StreamSegmentInfo

    • Constructor Detail

      • StreamSegmentInfo

        @ConstructorProperties({"requestId","segmentName","exists","isSealed","isDeleted","lastModified","writeOffset","startOffset"})
        public StreamSegmentInfo​(long requestId,
                                 java.lang.String segmentName,
                                 boolean exists,
                                 boolean isSealed,
                                 boolean isDeleted,
                                 long lastModified,
                                 long writeOffset,
                                 long startOffset)
    • Method Detail

      • writeFields

        public void writeFields​(java.io.DataOutput out)
                         throws java.io.IOException
        Specified by:
        writeFields in interface WireCommand
        Throws:
        java.io.IOException
      • readFrom

        public static <T extends java.io.InputStream & java.io.DataInput> WireCommand readFrom​(T in,
                                                                                               int length)
                                                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • getRequestId

        public long getRequestId()
        Specified by:
        getRequestId in interface Reply
      • getSegmentName

        public java.lang.String getSegmentName()
      • exists

        public boolean exists()
      • isSealed

        public boolean isSealed()
      • isDeleted

        public boolean isDeleted()
      • getLastModified

        public long getLastModified()
      • getWriteOffset

        public long getWriteOffset()
      • getStartOffset

        public long getStartOffset()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object