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

read() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  cf0b6778_2e88_c696_542a_8a918a9f31fd["read()"]
  10fcc72d_7187_6bf0_8259_92592a8ee85d["completed()"]
  cf0b6778_2e88_c696_542a_8a918a9f31fd -->|calls| 10fcc72d_7187_6bf0_8259_92592a8ee85d
  db2f5921_449d_18b3_263e_cb4a663d5aa7["failed()"]
  cf0b6778_2e88_c696_542a_8a918a9f31fd -->|calls| db2f5921_449d_18b3_263e_cb4a663d5aa7
  style cf0b6778_2e88_c696_542a_8a918a9f31fd 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 125–144

		@Override
		public <A> void read(ByteBuffer dst, A attachment, CompletionHandler<Integer, ? super A> handler) {
			this.fileChannel.read(dst, 0, attachment, new CompletionHandler<>() {

				@Override
				public void completed(Integer read, A attachment) {
					handler.completed((read > 0) ? read : -1, attachment);
				}

				@Override
				public void failed(Throwable exc, A attachment) {
					if (exc instanceof AsynchronousCloseException) {
						handler.completed(-1, attachment);
						return;
					}
					handler.failed(exc, attachment);
				}

			});
		}

Domain

Subdomains

Calls

  • completed()
  • failed()

Frequently Asked Questions

What does read() do?
read() is a function in the spring-boot codebase.
What does read() call?
read() calls 2 function(s): completed, failed.

Analyze Your Own Codebase

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

Try Supermodel Free