Interface Openable.OpenBuilder<B extends Openable.OpenBuilder<B>>

  • Type Parameters:
    B - The instance to be returned on which to apply succeeding builder operations.
    All Known Subinterfaces:
    LinkComponent.LinkComponentBuilder<B>
    Enclosing interface:
    Openable

    public static interface Openable.OpenBuilder<B extends Openable.OpenBuilder<B>>
    To enable the Startable functionality to be invoked in a builder chain.
    • Method Detail

      • withOpen

        B withOpen()
            throws OpenException
        Builder method for the Openable.open() method.
        Returns:
        The instance to be returned on which to apply succeeding builder operations.
        Throws:
        OpenException - Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
      • withOpenUnchecked

        default B withOpenUnchecked()
        Opens the component by calling withOpen() without you to require catching an OpenException.
        Returns:
        The instance to be returned on which to apply succeeding builder operations.
        Throws:
        OpenException.OpenRuntimeException - encapsulates the cause and is thrown upon encountering a OpenException exception