Class BarSkeletonManager
java.lang.Object
com.iohao.net.framework.core.BarSkeletonManager
Global registry that maps logic-server IDs to their
BarSkeleton instances.
Each logic server registers its skeleton during startup so that other components (e.g. routing, inter-server calls) can look it up by server ID at runtime.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-02
-
Method Summary
Modifier and TypeMethodDescriptionstatic BarSkeletongetBarSkeleton(int serverId) Retrieve theBarSkeletonassociated with the given server ID.static voidputBarSkeleton(int serverId, BarSkeleton barSkeleton) Register aBarSkeletonfor the given server ID.
-
Method Details
-
putBarSkeleton
Register aBarSkeletonfor the given server ID.- Parameters:
serverId- unique identifier of the logic serverbarSkeleton- the skeleton instance to register
-
getBarSkeleton
Retrieve theBarSkeletonassociated with the given server ID.- Parameters:
serverId- unique identifier of the logic server- Returns:
- the registered skeleton, or
nullif none is registered
-