Interface AbstractCoordinatorTestCase.DisruptibleRegisterConnection

Enclosing class:
AbstractCoordinatorTestCase

public static interface AbstractCoordinatorTestCase.DisruptibleRegisterConnection
  • Method Summary

    Modifier and Type
    Method
    Description
    <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
    If disconnected, fail the listener; if blackholed then do nothing; otherwise pass the listener to the consumer.
  • Method Details

    • runDisrupted

      <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.
    • runDisruptedOrDrop

      <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.