publish() — spring-boot Function Reference
Architecture documentation for the publish() function in TotalProgressListener.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD b4f3b9ee_11c2_526a_fa6e_74bafcc6ad0c["publish()"] b4265e8d_037a_b23b_d852_245a5e391f1a["onUpdate()"] b4265e8d_037a_b23b_d852_245a5e391f1a -->|calls| b4f3b9ee_11c2_526a_fa6e_74bafcc6ad0c ff0bca7f_1d3d_c232_9177_14518807a67f["onFinish()"] ff0bca7f_1d3d_c232_9177_14518807a67f -->|calls| b4f3b9ee_11c2_526a_fa6e_74bafcc6ad0c d6291b65_a57a_c705_5227_5bc2b921fbe9["getProgress()"] b4f3b9ee_11c2_526a_fa6e_74bafcc6ad0c -->|calls| d6291b65_a57a_c705_5227_5bc2b921fbe9 704eafb8_6ede_eb3d_1bbf_81405bca2adc["withinPercentageBounds()"] b4f3b9ee_11c2_526a_fa6e_74bafcc6ad0c -->|calls| 704eafb8_6ede_eb3d_1bbf_81405bca2adc style b4f3b9ee_11c2_526a_fa6e_74bafcc6ad0c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/TotalProgressListener.java lines 79–89
private void publish(int fallback) {
int count = 0;
int total = 0;
for (Layer layer : this.layers.values()) {
count++;
total += layer.getProgress();
}
TotalProgressEvent event = new TotalProgressEvent(
(count != 0) ? withinPercentageBounds(total / count) : fallback);
this.consumer.accept(event);
}
Domain
Subdomains
Called By
- onFinish()
- onUpdate()
Source
Frequently Asked Questions
What does publish() do?
publish() is a function in the spring-boot codebase.
What does publish() call?
publish() calls 2 function(s): getProgress, withinPercentageBounds.
What calls publish()?
publish() is called by 2 function(s): onFinish, onUpdate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free