Class PortImpl

  • All Implemented Interfaces:
    Port

    @Service
    @PerLookup
    public class PortImpl
    extends Object
    implements Port
    Abstract to port creation and destruction
    • Constructor Detail

      • PortImpl

        public PortImpl()
    • Method Detail

      • setPortNumber

        public void setPortNumber​(int portNumber)
      • close

        public void close()
        Description copied from interface: Port
        Unbinds (close) this port instance, releasing network resources at portNumber
        Specified by:
        close in interface Port
      • getPortNumber

        public int getPortNumber()
        Description copied from interface: Port
        Returns the port number occupied by this instance.
        Specified by:
        getPortNumber in interface Port
        Returns:
        port number