How ppzxc/strand works
Strand is a Java library for multiplexing concurrent requests and responses over long-lived server connections. Its user workflow is to configure a client or server, establish a connection, submit requests, dispatch incoming requests to handlers, and observe results; the shared core endpoint handles protocol state and framing. NIO provides TCP/TLS, while Netty provides TCP/WebSocket. Resource limits, result observation, authentication, and shutdown are supporting capabilities. Relationships are limited to README statements and shown source references; some transport-to-core wiring is therefore left unverified.
Main entry points: nio/ConnectionEngine.java NIO Engine · netty/ConnectionEngine.java Netty Engine · Endpoint.java Protocol Endpoint · Request.java Requests and Limits
Components 18
Public API
- Requests and Limits
strand-api/src/main/java/io/github/ppzxc/strand/api/Request.java - Request Extensions
strand-api/src/main/java/io/github/ppzxc/strand/api/Extensions.java - Results and Observation
strand-api/src/main/java/io/github/ppzxc/strand/api/ResultCompletion.java - Resource Budgets
strand-api/src/main/java/io/github/ppzxc/strand/api/Resource.java
Protocol Core
- Protocol Endpoint
strand-core/src/main/java/io/github/ppzxc/strand/core/internal/Endpoint.java - Protocol Events
strand-core/src/main/java/io/github/ppzxc/strand/core/internal/Event.java - Outbound Messages
strand-core/src/main/java/io/github/ppzxc/strand/core/internal/OutboundMessage.java
NIO Transport
- NIO Client
strand-nio/src/main/java/io/github/ppzxc/strand/nio/NioStrandClient.java - NIO Connection
strand-nio/src/main/java/io/github/ppzxc/strand/nio/NioStrandConnection.java - NIO Engine
strand-nio/src/main/java/io/github/ppzxc/strand/nio/ConnectionEngine.java - NIO Server
strand-nio/src/main/java/io/github/ppzxc/strand/nio/NioStrandServer.java - TCP and TLS
strand-nio/src/main/java/io/github/ppzxc/strand/nio/internal/TcpPassage.java
Netty Transport
- Netty Client
strand-netty/src/main/java/io/github/ppzxc/strand/netty/NettyStrandClient.java - Netty Connection
strand-netty/src/main/java/io/github/ppzxc/strand/netty/NettyStrandConnection.java - Netty Engine
strand-netty/src/main/java/io/github/ppzxc/strand/netty/ConnectionEngine.java - Netty Server
strand-netty/src/main/java/io/github/ppzxc/strand/netty/NettyStrandServer.java - TCP and WebSocket
strand-netty/src/main/java/io/github/ppzxc/strand/netty/internal/WireFactory.java
Other components
- Library User
Connections 20
- Library User → NIO Client: configures
README.md - Library User → Netty Client: configures
README.md - NIO Client → NIO Connection: creates
strand-nio/src/main/java/io/github/ppzxc/strand/nio/NioStrandClient.java - NIO Client → NIO Engine: starts
strand-nio/src/main/java/io/github/ppzxc/strand/nio/NioStrandClient.java - Netty Client → Netty Connection: creates
strand-netty/src/main/java/io/github/ppzxc/strand/netty/NettyStrandClient.java - Netty Client → Netty Engine: starts
strand-netty/src/main/java/io/github/ppzxc/strand/netty/NettyStrandClient.java - NIO Engine → Requests and Limits: uses
strand-nio/src/main/java/io/github/ppzxc/strand/nio/ConnectionEngine.java - NIO Engine → Resource Budgets: accounts
strand-nio/src/main/java/io/github/ppzxc/strand/nio/ConnectionEngine.java - NIO Engine → Results and Observation: completes
strand-nio/src/main/java/io/github/ppzxc/strand/nio/ConnectionEngine.java - Netty Engine → Requests and Limits: uses
strand-netty/src/main/java/io/github/ppzxc/strand/netty/ConnectionEngine.java - Netty Engine → Resource Budgets: accounts
strand-netty/src/main/java/io/github/ppzxc/strand/netty/ConnectionEngine.java - Netty Engine → Results and Observation: completes
strand-netty/src/main/java/io/github/ppzxc/strand/netty/ConnectionEngine.java - Protocol Endpoint → Protocol Events: emits
strand-core/src/main/java/io/github/ppzxc/strand/core/internal/Endpoint.java - Protocol Endpoint → Outbound Messages: queues
strand-core/src/main/java/io/github/ppzxc/strand/core/internal/Endpoint.java - NIO Engine → Protocol Endpoint: drives
strand-nio/src/main/java/io/github/ppzxc/strand/nio/ConnectionEngine.java - Netty Engine → Protocol Endpoint: drives
strand-netty/src/main/java/io/github/ppzxc/strand/netty/ConnectionEngine.java - NIO Connection → TCP and TLS: uses
- Netty Connection → TCP and WebSocket: uses
- Library User → Requests and Limits: submits
README.md - Requests and Limits → Request Extensions: encodes
strand-api/src/main/java/io/github/ppzxc/strand/api/Request.java