Interface Flushable.FlushBuilder<B extends Flushable.FlushBuilder<B>>

  • Type Parameters:
    B - the generic type
    All Superinterfaces:
    Flushable, Flushable
    Enclosing interface:
    Flushable

    public static interface Flushable.FlushBuilder<B extends Flushable.FlushBuilder<B>>
    extends Flushable
    The Interface FlushBuilder.
    • Method Detail

      • withFlush

        default B withFlush()
                     throws IOException
        With flush as of Flushable.flush().
        Returns:
        The implementing instance as of the Builder-Pattern.
        Throws:
        IOException - in case flushing failed as of some reason.
      • withFlushUnchecked

        default B withFlushUnchecked()
        Flushes the component by calling withFlush() without you to require catching a IOException.
        Returns:
        The instance to be returned on which to apply succeeding builder operations.
        Throws:
        org.refcodes.exception.IORuntimeException - encapsulates the cause and is thrown upon encountering a IOException exception