类 PortManager
java.lang.Object
org.apache.pulsar.common.util.PortManager
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleancheckPortIfLocked(int lockedPort) Check port if locked.static intReturn a locked available port.static booleanreleaseLockedPort(int lockedPort) Returns whether the port was released successfully.
-
构造器详细资料
-
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.
-