org.openspaces.pu.container.jee.jetty.support
Class FileLockFreePortGenerator.FileLockPortHandle
java.lang.Object
org.openspaces.pu.container.jee.jetty.support.FileLockFreePortGenerator.FileLockPortHandle
- All Implemented Interfaces:
- FreePortGenerator.PortHandle
- Enclosing class:
- FileLockFreePortGenerator
public static class FileLockFreePortGenerator.FileLockPortHandle
- extends Object
- implements FreePortGenerator.PortHandle
Method Summary |
int |
getPort()
Returns the free port. |
void |
release()
Releases the port lock. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileLockFreePortGenerator.FileLockPortHandle
public FileLockFreePortGenerator.FileLockPortHandle(RandomAccessFile portFile,
FileLock portFileLock,
int portNumber)
getPort
public int getPort()
- Description copied from interface:
FreePortGenerator.PortHandle
- Returns the free port.
- Specified by:
getPort
in interface FreePortGenerator.PortHandle
release
public void release()
- Description copied from interface:
FreePortGenerator.PortHandle
- Releases the port lock.
- Specified by:
release
in interface FreePortGenerator.PortHandle
Copyright © GigaSpaces.