Interface LimitHandler
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface LimitHandler
The default interface to be used for executing logic when buffer limit is reached.- Since:
- 0.8.0
- See Also:
BlockingRecordQueue
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
LimitHandler.BlockingQueueLimitReachedException
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <K,V>
voidonLimitReached(BlockingRecordQueue<K,V> queue)
Invokes when the limit of aBlockingRecordQueue
is reached.
-
-
-
Method Detail
-
onLimitReached
<K,V> void onLimitReached(BlockingRecordQueue<K,V> queue)
Invokes when the limit of aBlockingRecordQueue
is reached.- Parameters:
queue
- the queue that reached its limit.
-
-