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 IOException
        Builder method for the Openable.open() method.
        Returns:
        The instance to be returned on which to apply succeeding builder operations.
        Throws:
        IOException - 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 IOException.
        Returns:
        The instance to be returned on which to apply succeeding builder operations.
        Throws:
        org.refcodes.exception.IORuntimeException - encapsulates the cause and is thrown upon encountering a IOException exception