public static class FileLockFreePortGenerator.FileLockPortHandle extends Object implements FreePortGenerator.PortHandle
Constructor and Description |
---|
FileLockPortHandle(RandomAccessFile portFile,
FileLock portFileLock,
int portNumber) |
Modifier and Type | Method and Description |
---|---|
int |
getPort()
Returns the free port.
|
void |
release()
Releases the port lock.
|
public FileLockPortHandle(RandomAccessFile portFile, FileLock portFileLock, int portNumber)
public int getPort()
FreePortGenerator.PortHandle
getPort
in interface FreePortGenerator.PortHandle
public void release()
FreePortGenerator.PortHandle
release
in interface FreePortGenerator.PortHandle
Copyright © GigaSpaces.