Package com.github.mikesafonov.smpp.api
Class RandomIndexDetectionStrategy
- java.lang.Object
-
- com.github.mikesafonov.smpp.api.RandomIndexDetectionStrategy
-
- All Implemented Interfaces:
IndexDetectionStrategy
public class RandomIndexDetectionStrategy extends java.lang.Object implements IndexDetectionStrategy
Implementation ofIndexDetectionStrategywhich return random index based on incoming size
-
-
Constructor Summary
Constructors Constructor Description RandomIndexDetectionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intnext(int size)Create next index based on size of connections
-
-
-
Method Detail
-
next
public int next(int size)
Description copied from interface:IndexDetectionStrategyCreate next index based on size of connections- Specified by:
nextin interfaceIndexDetectionStrategy- Parameters:
size- size of connections- Returns:
- next index
-
-