Class PortAllocBridge


  • public class PortAllocBridge
    extends Object
    API for allocating network ports This class acts as a bridge between NetworkPortRequestor and HostPorts for a single call to allocatePorts(), gathering the resulting port allocations in a list of integers.
    Author:
    arnej
    • Method Detail

      • requirePort

        public int requirePort​(int port,
                               String suffix)
      • wantPort

        public int wantPort​(int port,
                            String suffix)
      • allocatePort

        public int allocatePort​(String suffix)