Class FtBasic

  • All Implemented Interfaces:
    Front

    public final class FtBasic
    extends Object
    implements Front
    Basic front.

    The class is immutable and thread-safe.

    Since:
    0.1
    • Constructor Detail

      • FtBasic

        public FtBasic​(Take tks)
                throws IOException
        Ctor.
        Parameters:
        tks - Take
        Throws:
        IOException - If fails
        Since:
        0.24
      • FtBasic

        public FtBasic​(Take tks,
                       int prt)
                throws IOException
        Ctor.
        Parameters:
        tks - Take
        prt - Port
        Throws:
        IOException - If fails
      • FtBasic

        public FtBasic​(Back bck,
                       int port)
                throws IOException
        Ctor.
        Parameters:
        bck - Back
        port - Port
        Throws:
        IOException - If fails
      • FtBasic

        public FtBasic​(Back bck,
                       ServerSocket skt)
        Ctor.
        Parameters:
        bck - Back
        skt - Server socket
        Since:
        0.22
    • Method Detail

      • start

        public void start​(Exit exit)
                   throws IOException
        Description copied from interface: Front
        Start and dispatch all incoming sockets.
        Specified by:
        start in interface Front
        Parameters:
        exit - When to exit
        Throws:
        IOException - If fails