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 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
.CloseException.CloseRuntimeException
- encapsulates the cause and is thrown
upon encountering a CloseException
exceptionCopyright © 2018. All rights reserved.