GigaSpaces XAP 9.1 API

org.openspaces.pu.container.jee.jetty.support
Class FileLockFreePortGenerator.FileLockPortHandle

java.lang.Object
  extended by 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


Constructor Summary
FileLockFreePortGenerator.FileLockPortHandle(RandomAccessFile portFile, FileLock portFileLock, int portNumber)
           
 
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
 

Constructor Detail

FileLockFreePortGenerator.FileLockPortHandle

public FileLockFreePortGenerator.FileLockPortHandle(RandomAccessFile portFile,
                                                    FileLock portFileLock,
                                                    int portNumber)
Method Detail

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

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.