B - The instance to be returned on which to apply succeeding
builder operations.public static interface Closable.CloseBuilder<B extends Closable.CloseBuilder<B>>
Closable functionality to be invoked in a builder
chain.| Modifier and Type | Method and Description |
|---|---|
B |
withClose()
Builder method for the
Closable.close() method. |
B |
withCloseIn(int aCloseInMillis)
Builder method for the
Closable.closeIn( int ) method. |
B |
withCloseQuietly()
Builder method for the
Closable.closeQuietly() method. |
default B |
withCloseUnchecked()
Closes the component by calling
withClose() without you to
require catching an CloseException. |
B withClose() throws CloseException
Closable.close() method.CloseException - in case closing or pre-closing (flushing)
fails.B withCloseQuietly()
Closable.closeQuietly() method.B withCloseIn(int aCloseInMillis)
Closable.closeIn( int ) method.aCloseInMillis - The time in milliseconds to pass till
Closable.close() is called.default B withCloseUnchecked()
withClose() without you to
require catching an CloseException.org.refcodes.exception.HiddenException - encapsulates the cause and is thrown upon
encountering a CloseException exceptionCopyright © 2017. All rights reserved.