Class ServerImpl

  • All Implemented Interfaces:
    Server

    public class ServerImpl
    extends Object
    implements Server
    Server to handle lifecycle of microprofile implementation.
    • Method Detail

      • start

        public Server start()
        Description copied from interface: Server
        Start this server (can only be used once). This is a blocking call.
        Specified by:
        start in interface Server
        Returns:
        Server instance, started
      • stop

        public Server stop()
        Description copied from interface: Server
        Stop this server immediately (can only be used on a started server). This is a blocking call.
        Specified by:
        stop in interface Server
        Returns:
        Server instance, stopped
      • host

        public String host()
        Description copied from interface: Server
        Get the host this server listens on.
        Specified by:
        host in interface Server
        Returns:
        host name
      • port

        public int port()
        Description copied from interface: Server
        Get the port this server listens on or -1 if the server is not running.
        Specified by:
        port in interface Server
        Returns:
        port