Interface WriteChannel

    • Method Detail

      • setChunkSize

        void setChunkSize​(int chunkSize)
        Sets the minimum size that will be written by a single RPC. Written data will be buffered and only flushed upon reaching this size or closing the channel.
      • capture

        RestorableState<WriteChannel> capture()
        Captures the write channel state so that it can be saved and restored afterwards. The original WriteChannel and the restored one should not both be used. Closing one channel causes the other channel to close; subsequent writes will fail.
        Specified by:
        capture in interface Restorable<WriteChannel>
        Returns:
        a RestorableState object that contains the write channel state and can restore it afterwards.