Home / Function/ open() — spring-boot Function Reference

open() — spring-boot Function Reference

Architecture documentation for the open() function in NamedPipeSocket.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  e68a2e36_cfcd_e638_a91a_5ebf2dfb854c["open()"]
  9eba1f0c_f054_0b76_dd94_28b89d855ffc["NamedPipeSocket()"]
  9eba1f0c_f054_0b76_dd94_28b89d855ffc -->|calls| e68a2e36_cfcd_e638_a91a_5ebf2dfb854c
  d384fa88_84a9_4e80_3ca3_ce14fa3f13ef["AsynchronousFileByteChannel()"]
  e68a2e36_cfcd_e638_a91a_5ebf2dfb854c -->|calls| d384fa88_84a9_4e80_3ca3_ce14fa3f13ef
  cccf1a03_3fce_1831_f6a8_f4fda5f66d85["get()"]
  e68a2e36_cfcd_e638_a91a_5ebf2dfb854c -->|calls| cccf1a03_3fce_1831_f6a8_f4fda5f66d85
  f8a7d9b4_77af_60e7_8c1e_4e7e7acf3af4["accept()"]
  e68a2e36_cfcd_e638_a91a_5ebf2dfb854c -->|calls| f8a7d9b4_77af_60e7_8c1e_4e7e7acf3af4
  style e68a2e36_cfcd_e638_a91a_5ebf2dfb854c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/socket/NamedPipeSocket.java lines 60–75

	private AsynchronousFileByteChannel open(String path) throws IOException {
		Consumer<String> awaiter = Platform.isWindows() ? new WindowsAwaiter() : new SleepAwaiter();
		long startTime = System.nanoTime();
		while (true) {
			try {
				return new AsynchronousFileByteChannel(AsynchronousFileChannel.open(Paths.get(path),
						StandardOpenOption.READ, StandardOpenOption.WRITE));
			}
			catch (FileSystemException ex) {
				if (System.nanoTime() - startTime >= TIMEOUT) {
					throw ex;
				}
				awaiter.accept(path);
			}
		}
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does open() do?
open() is a function in the spring-boot codebase.
What does open() call?
open() calls 3 function(s): AsynchronousFileByteChannel, accept, get.
What calls open()?
open() is called by 1 function(s): NamedPipeSocket.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free