IndexV2DiffStreamReceiver

Functions

Link copied to clipboard
abstract fun onStreamEnded()

Called when the stream has been processed to its end.

Link copied to clipboard
abstract fun receivePackageMetadataDiff(packageName: String, packageJsonObject: JsonObject?)

Receives one diff for a MetadataV2 from the index stream. This is called once for each package in the index diff.

Link copied to clipboard
abstract fun receiveRepoDiff(version: Long, repoJsonObject: JsonObject)

Receives the diff for the RepoV2 from the index stream.

Link copied to clipboard
abstract fun receiveVersionsDiff(packageName: String, versionsDiffMap: Map<String, JsonObject?>?)

Receives the diff for all versions of the give n packageName as a map of versions IDs to the diff JsonObject. This is called once for each package in the index diff (if versions have changed).