Class NetworkDownloadActivityFinished_1_1
- java.lang.Object
-
- com.gradle.scan.eventmodel.gradle.NetworkDownloadActivityFinished_1_0
-
- com.gradle.scan.eventmodel.gradle.NetworkDownloadActivityFinished_1_1
-
- All Implemented Interfaces:
com.gradle.scan.eventmodel.EventData
- Direct Known Subclasses:
NetworkDownloadActivityFinished_1_2
@GradleVersion(since="4.0") @PluginVersion(since="1.8", until="1.13") public class NetworkDownloadActivityFinished_1_1 extends NetworkDownloadActivityFinished_1_0
AnEventData
that is published when a network download operation has finished.Zero or more
NetworkDownloadActivityFinished_1_1
events may be published.
-
-
Field Summary
Fields Modifier and Type Field Description long
readContentLength
The number of content bytes read.-
Fields inherited from class com.gradle.scan.eventmodel.gradle.NetworkDownloadActivityFinished_1_0
failure, id
-
-
Constructor Summary
Constructors Constructor Description NetworkDownloadActivityFinished_1_1(long id, long readContentLength, @Nullable ExceptionTree_1_0 failure)
-
-
-
Field Detail
-
readContentLength
public final long readContentLength
The number of content bytes read.This is not guaranteed to be the number of bytes transferred. For example, this resource may be content encoded (e.g. compression, fewer bytes transferred). Or, it might be transfer encoded (e.g. HTTP chunked transfer, more bytes transferred). Or, both. Therefore, it is not necessarily an accurate input into transfer rate (a.k.a. throughput) calculations.
Moreover, it represents the content bytes read, not transferred. If the read operation only reads a subset of what was transmitted, this number will be the read byte count.
Negative values should be ignored as they indicate insufficient data available for content length.
-
-
Constructor Detail
-
NetworkDownloadActivityFinished_1_1
public NetworkDownloadActivityFinished_1_1(long id, long readContentLength, @Nullable @Nullable ExceptionTree_1_0 failure)
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classNetworkDownloadActivityFinished_1_0
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classNetworkDownloadActivityFinished_1_0
-
toString
public String toString()
- Overrides:
toString
in classNetworkDownloadActivityFinished_1_0
-
-