Package org.refcodes.component
Interface Flushable.FlushBuilder<B extends Flushable.FlushBuilder<B>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.Flushable
Flushable.FlushBuilder<B extends Flushable.FlushBuilder<B>>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default B
withFlush()
With flush as ofFlushable.flush()
.default B
withFlushUnchecked()
Flushes the component by callingwithFlush()
without you to require catching aOpenException
.-
Methods inherited from interface org.refcodes.component.Flushable
flush, flushUnchecked, isFlushable
-
-
-
-
Method Detail
-
withFlush
default B withFlush() throws OpenException
With flush as ofFlushable.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 callingwithFlush()
without you to require catching aOpenException
.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
OpenException.OpenRuntimeException
- encapsulates the cause and is thrown upon encountering aOpenException
exception
-
-