...
| Code Block |
|---|
// Immutable WebRequest
public final class WebRequest {
private final long bandwidth;
private final long responseTime;
public WebRequest(long bandwidth, long getBandwidth(responseTime) {
this.bandwidth return= bandwidth;
this.responseTime = responseTime;
}
public long getResponseTimegetBandwidth() {
return responseTimebandwidth;
}
public WebRequest(long bandwidth, long responseTimegetResponseTime() {
this.bandwidth = bandwidth;
this.responseTime =return responseTime;
}
}
|
Each request has a response time associated with it, as well as a measurement of network bandwidth required to fulfill the request.
...