Package com.github.mikesafonov.smpp.api
Class RoundRobinIndexDetectionStrategy
- java.lang.Object
-
- com.github.mikesafonov.smpp.api.RoundRobinIndexDetectionStrategy
-
- All Implemented Interfaces:
IndexDetectionStrategy
public class RoundRobinIndexDetectionStrategy extends java.lang.Object implements IndexDetectionStrategy
Round robin strategy
-
-
Constructor Summary
Constructors Constructor Description RoundRobinIndexDetectionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intnext(int size)Increment current index and return new index by module ofsmscConnectionssize
-
-
-
Method Detail
-
next
public int next(int size)
Increment current index and return new index by module ofsmscConnectionssize- Specified by:
nextin interfaceIndexDetectionStrategy- Parameters:
size- size of connections- Returns:
- new index
-
-