![JAR search and dependency download from the Maven repository](/logo.png)
bt.BtClientBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bt-core Show documentation
Show all versions of bt-core Show documentation
BitTorrent Client Library (Core)
package bt;
import bt.runtime.BtRuntime;
import java.util.Objects;
/**
* Builds a client and attaches it to the provided runtime.
*
* @since 1.1
*/
public class BtClientBuilder extends BaseClientBuilder {
static BtClientBuilder runtime(BtRuntime runtime) {
return new BtClientBuilder(runtime);
}
private BtRuntime runtime;
private BtClientBuilder(BtRuntime runtime) {
this.runtime = Objects.requireNonNull(runtime, "Missing runtime");
}
@Override
protected BtRuntime getRuntime() {
return runtime;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy