public static class NetUtils.Port extends Object implements AutoCloseable
FileLock
until it releases. Used to avoid race
condition among multiple threads/processes.public Port(int port, FileLock fileLock) throws IOException
IOException
public int getPort()
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.