Packages that use DataLoader
Package
Description
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
  • Uses of DataLoader in org.klomp.snark

    Classes in org.klomp.snark that implement DataLoader
    Modifier and Type
    Class
    Description
    (package private) class 
    Manages the state and protocol logic for a BitTorrent peer connection.
    This class tracks peer interest/choking status, piece availability, request queues, and handles all BitTorrent protocol message processing.
    Fields in org.klomp.snark declared as DataLoader
    Modifier and Type
    Field
    Description
    private final DataLoader
    Message.dataLoader
    The loader for a deferred fetch of the message data.
    Methods in org.klomp.snark with parameters of type DataLoader
    Modifier and Type
    Method
    Description
    (package private) void
    PeerConnectionOut.sendPiece(int piece, int begin, int length, DataLoader loader)
    Queue a piece message with a callback to load the data from disk when required.
    Constructors in org.klomp.snark with parameters of type DataLoader
    Modifier
    Constructor
    Description
    private
    Message(byte type, int piece, int begin, int length, byte[] data, int off, int len, DataLoader loader)
    Creates a peer protocol message from its fields.
    (package private)
    Message(int piece, int begin, int length, DataLoader loader)
    For type PIECE with deferred data.