Class RingElementSelector<T>
java.lang.Object
com.iohao.net.server.balanced.RingElementSelector<T>
- All Implemented Interfaces:
ElementSelector<T>, Supplier<T>
Round-robin selector backed by an array snapshot.
- Since:
- 21.19
- Author:
- 渔民小镇
- date:
- 2024-10-19
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RingElementSelector
-
-
Method Details
-
next
Description copied from interface:ElementSelectorReturns the next selected element.- Specified by:
nextin interfaceElementSelector<T>- Returns:
- selected element, or null if none
-
get
-