com.hubspot.chrome.devtools.client.core.network.DataReceivedEvent Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.network;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.Event;
/**
* Fired when data chunk was received over the network.
*/
public final class DataReceivedEvent extends Event {
private RequestId requestId;
private MonotonicTime timestamp;
private Integer dataLength;
private Integer encodedDataLength;
@JsonCreator
public DataReceivedEvent(@JsonProperty("requestId") RequestId requestId,
@JsonProperty("timestamp") MonotonicTime timestamp,
@JsonProperty("dataLength") Integer dataLength,
@JsonProperty("encodedDataLength") Integer encodedDataLength) {
this.requestId = requestId;
this.timestamp = timestamp;
this.dataLength = dataLength;
this.encodedDataLength = encodedDataLength;
}
public RequestId getRequestId() {
return requestId;
}
public MonotonicTime getTimestamp() {
return timestamp;
}
public Integer getDataLength() {
return dataLength;
}
public Integer getEncodedDataLength() {
return encodedDataLength;
}
}