Package com.torrent4j.model

Examples of com.torrent4j.model.TorrentTrafficControl


  }

  private void reconfigure() {
    if (torrent == null)
      return;
    final TorrentTrafficControl traffic = torrent.getTrafficControl();
    long readLimit = traffic.getDownloadSpeedLimit();
    long writeLimit = traffic.getUploadSpeedLimit();
    if (readLimit != this.readLimit || writeLimit != this.writeLimit) {
      this.writeLimit = writeLimit;
      this.readLimit = readLimit;
      configure(writeLimit, readLimit);
    }
View Full Code Here

TOP

Related Classes of com.torrent4j.model.TorrentTrafficControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.