Class DefaultSkeletonThreadPipeline
java.lang.Object
com.iohao.net.framework.core.DefaultSkeletonThreadPipeline
- All Implemented Interfaces:
SkeletonThreadPipeline
Default
SkeletonThreadPipeline that dispatches a FlowContext to the
appropriate thread executor based on the request's hop count.
Hop-count routing:
- 0 -- user thread executor (direct client request)
- 1 -- simple thread executor (single-hop forwarded request)
- 2+ -- virtual thread executor (multi-hop request)
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-02
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(BarSkeleton barSkeleton, FlowContext flowContext) Dispatch the given flow context for execution on an appropriate thread.
-
Constructor Details
-
DefaultSkeletonThreadPipeline
public DefaultSkeletonThreadPipeline()
-
-
Method Details
-
execute
Description copied from interface:SkeletonThreadPipelineDispatch the given flow context for execution on an appropriate thread.- Specified by:
executein interfaceSkeletonThreadPipeline- Parameters:
barSkeleton- the skeleton that will handle the requestflowContext- the per-request flow context
-