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 OpenException
        With flush as of Flushable.flush().
        Returns:
        The implementing instance as of the Builder-Pattern.
        Throws:
        OpenException - in case flushing failed as of some reason.
      • withFlushUnchecked

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