Interface OutgoingStream

  • All Known Implementing Classes:
    CassandraOutgoingFile

    public interface OutgoingStream
    Some subset of data to be streamed. Implementations handle writing out their data via the write method. On the receiving end, IncomingStream streams the data in. All the data contained in a given stream needs to have the same repairedAt timestamp (or 0) and pendingRepair id (or null).
    • Method Detail

      • write

        void write​(StreamSession session,
                   StreamingDataOutputPlus output,
                   int version)
            throws java.io.IOException
        Write the streams data into the socket
        Throws:
        java.io.IOException
      • finish

        void finish()
        Release any resources held by the stream
      • getRepairedAt

        long getRepairedAt()
      • getPendingRepair

        TimeUUID getPendingRepair()
      • getName

        java.lang.String getName()
      • getEstimatedSize

        long getEstimatedSize()
        Returns:
        estimated file size to be streamed. This should only be used for metrics, because concurrent stats metadata update and index redistribution will change file sizes.
      • getNumFiles

        int getNumFiles()