Interface FlushStrategy

  • All Known Implementing Classes:
    DelegatingFlushStrategy, MockFlushStrategy, SplittingFlushStrategy
    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 FlushStrategy
    A strategy that defines how to flush writes on a connection.
    • Method Detail

      • shouldFlushOnUnwritable

        default boolean shouldFlushOnUnwritable()
        Returns true if pending writes, if any, MUST be flushed when the connection is not writable.

        This method is expected to be idempotent.

        Returns:
        true if pending writes, if any, MUST be flushed when the connection is not writable.