类 PortManager

java.lang.Object
org.apache.pulsar.common.util.PortManager

public class PortManager extends Object
  • 构造器详细资料

    • PortManager

      public PortManager()
  • 方法详细资料

    • nextLockedFreePort

      public static int nextLockedFreePort()
      Return a locked available port.
      返回:
      locked available port.
    • releaseLockedPort

      public static boolean releaseLockedPort(int lockedPort)
      Returns whether the port was released successfully.
      返回:
      whether the release is successful.
    • checkPortIfLocked

      public static boolean checkPortIfLocked(int lockedPort)
      Check port if locked.
      返回:
      whether the port is locked.