Class DefaultSkeletonThreadPipeline

java.lang.Object
com.iohao.net.framework.core.DefaultSkeletonThreadPipeline
All Implemented Interfaces:
SkeletonThreadPipeline

public final class DefaultSkeletonThreadPipeline extends Object implements 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 Details

    • DefaultSkeletonThreadPipeline

      public DefaultSkeletonThreadPipeline()
  • Method Details

    • execute

      public void execute(BarSkeleton barSkeleton, FlowContext flowContext)
      Description copied from interface: SkeletonThreadPipeline
      Dispatch the given flow context for execution on an appropriate thread.
      Specified by:
      execute in interface SkeletonThreadPipeline
      Parameters:
      barSkeleton - the skeleton that will handle the request
      flowContext - the per-request flow context