Interface AbstractCoordinatorTestCase.DisruptibleRegisterConnection
- Enclosing class:
- AbstractCoordinatorTestCase
public static interface AbstractCoordinatorTestCase.DisruptibleRegisterConnection
-
Method Summary
Modifier and TypeMethodDescription<R> void
runDisrupted
(ActionListener<R> listener, Consumer<ActionListener<R>> consumer) If disconnected, fail the listener; if blackholed then retain the listener for future failure; otherwise pass the listener to the consumer.<R> void
runDisruptedOrDrop
(ActionListener<R> listener, Consumer<ActionListener<R>> consumer) If disconnected, fail the listener; if blackholed then do nothing; otherwise pass the listener to the consumer.
-
Method Details
-
runDisrupted
If disconnected, fail the listener; if blackholed then retain the listener for future failure; otherwise pass the listener to the consumer. -
runDisruptedOrDrop
If disconnected, fail the listener; if blackholed then do nothing; otherwise pass the listener to the consumer.
-