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 Sink
Must hold a logic that doesn't expects an argument and a return value.
Since:
2019-11-28
  • Method Summary

    Modifier and Type
    Method
    Description
    default Sink
    drainsTo(Sink logic)
    Return a composed Sink that executes the logic after the main Sink logic.
    void
    Must a logic that doesn't expects an argument and a return value.
  • Method Details

    • plummet

      void plummet()
      Must a logic that doesn't expects an argument and a return value.
    • drainsTo

      default Sink drainsTo(Sink logic)
      Return a composed Sink that executes the logic after the main Sink logic.
      Parameters:
      logic - The logic that will be performed after the main Sink logic.
      Returns:
      A Sink implementation.
      Since:
      2.2.0