Interface ChunkedPacketSender

All Superinterfaces:
ChunkedPacketProvider
All Known Implementing Classes:
DefaultFileChunkPacketSender

public interface ChunkedPacketSender extends ChunkedPacketProvider
A sender of chunked data in any form. It is responsible to transfer all data chunks to the target network component of the transfer.
Since:
4.0
  • Method Details

    • forFileTransfer

      Get a new builder for a packet sender which allows to transfer a single but huge file, e.g. a zip folder in chunks through the network.
      Returns:
      a builder for file based chunked packet transfer.
    • transferChunkedData

      Transfers the data from the data source to all targets of this sender. The returned future is completed when:
      • The transfer completed successfully.
      • The transfer failed for any reason. The returned task will be completed holding the reason exception.
      Returns:
      a future completed when the transfer finishes.