Interface IntegerSequence.Incrementor.MaxCountExceededCallback
-
- Enclosing class:
- IntegerSequence.Incrementor
public static interface IntegerSequence.Incrementor.MaxCountExceededCallback
Defines a method to be called at counter exhaustion. Thetriggermethod should usually throw an exception.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidtrigger(int maximalCount)Function called when the maximal count has been reached.
-
-
-
Method Detail
-
trigger
void trigger(int maximalCount) throws MaxCountExceededException
Function called when the maximal count has been reached.- Parameters:
maximalCount- Maximal count.- Throws:
MaxCountExceededException- at counter exhaustion
-
-