Skip to content

HttpServer and Startable should not have default for methods that take callbacks / notify #733

Closed
@RichardHightower

Description

public interface HttpServer extends Server, HttpTransport {

    default HttpServer startServer() {
        start();
        return this;
    }


    default HttpServer startServerAndWait() {
        throw new UnsupportedOperationException("startServerAndWait is not supported by " + this.getClass().getName());
    }

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions