Module org.refcodes.component
Package org.refcodes.component
Interface Startable.StartBuilder<B extends Startable.StartBuilder<B>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description B
withStart()
Builder method for theStartable.start()
method.default B
withStartUnchecked()
Starts the component by callingwithStart()
without you to require catching anStartException
.
-
-
-
Method Detail
-
withStart
B withStart() throws StartException
Builder method for theStartable.start()
method.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
StartException
- Thrown in case starting fails.
-
withStartUnchecked
default B withStartUnchecked()
Starts the component by callingwithStart()
without you to require catching anStartException
.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
StartException.StartRuntimeException
- encapsulates the cause and is thrown upon encountering aStartException
exception
-
-