Package org.terracotta.angela.common.net
Class DefaultPortAllocator
- java.lang.Object
-
- org.terracotta.angela.common.net.DefaultPortAllocator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,PortAllocator
public class DefaultPortAllocator extends Object implements PortAllocator
- Author:
- Mathieu Carbou
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.terracotta.angela.common.net.PortAllocator
PortAllocator.PortReservation
-
-
Constructor Summary
Constructors Constructor Description DefaultPortAllocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()PortAllocator.PortReservationreserve(int portCounts)
-
-
-
Method Detail
-
reserve
public PortAllocator.PortReservation reserve(int portCounts)
- Specified by:
reservein interfacePortAllocator
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfacePortAllocator
-
-