Package rx
Interface BackpressureOverflow.Strategy
-
- All Known Implementing Classes:
BackpressureOverflow.DropLatest,BackpressureOverflow.DropOldest,BackpressureOverflow.Error
- Enclosing class:
- BackpressureOverflow
public static interface BackpressureOverflow.StrategyRepresents a callback called when a value is about to be dropped due to lack of downstream requests.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanmayAttemptDrop()Whether the Backpressure manager should attempt to drop the oldest item, or simply drop the item currently causing backpressure.
-
-
-
Method Detail
-
mayAttemptDrop
boolean mayAttemptDrop() throws MissingBackpressureExceptionWhether the Backpressure manager should attempt to drop the oldest item, or simply drop the item currently causing backpressure.- Returns:
- true to request drop of the oldest item, false to drop the newest.
- Throws:
MissingBackpressureException
-
-