GigaSpaces XAP 7.0 API

org.openspaces.pu.container.jee.jetty.support
Interface FreePortGenerator

All Known Implementing Classes:
FileLockFreePortGenerator, NoOpFreePortGenerator

public interface FreePortGenerator

A free port generator.

Author:
kimchy

Nested Class Summary
static interface FreePortGenerator.PortHandle
          A handle to release a locked port and get the obtained port.
 
Method Summary
 FreePortGenerator.PortHandle nextAvailablePort(int startFromPort, int retryCount)
          Generate the next available port from the start port and for retry count.
 

Method Detail

nextAvailablePort

FreePortGenerator.PortHandle nextAvailablePort(int startFromPort,
                                               int retryCount)
Generate the next available port from the start port and for retry count.


GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.