Module org.refcodes.component
Package org.refcodes.component
Interface Startable.StartBuilder<B extends Startable.StartBuilder<B>>
- Type Parameters:
B
- The instance to be returned on which to apply succeeding builder operations.
- Enclosing interface:
- Startable
public static interface Startable.StartBuilder<B extends Startable.StartBuilder<B>>
To enable the
Startable
functionality to be invoked in a builder
chain.-
Method Summary
Modifier and TypeMethodDescriptionBuilder method for theStartable.start()
method.default B
Starts the component by callingwithStart()
without you to require catching anStartException
.
-
Method Details
-
withStart
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
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 aCause and is thrown upon encountering aStartException
exception
-