B
- The instance to be returned on which to apply succeeding
builder operations.ConnectionComponent.ConnectionComponentBuilder<CON,B>
, LinkComponent.LinkComponentBuilder<B>
public static interface Closable.CloseBuilder<B extends Closable.CloseBuilder<B>>
Closable
functionality to be invoked in a builder
chain.Modifier and Type | Method | 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 IOException . |
B withClose() throws IOException
Closable.close()
method.IOException
- 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 IOException
.org.refcodes.exception.IORuntimeException
- encapsulates the cause and is thrown upon
encountering a IOException
exceptionCopyright © 2021. All rights reserved.