Examples of TorrentTrafficControl


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
Copyright © 2018 www.massapi.com. 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.