Class PortManager.AllocatedPort
- java.lang.Object
-
- java.lang.ref.Reference<T>
-
- java.lang.ref.WeakReference<PortManager.PortRef>
-
- org.terracotta.utilities.test.net.PortManager.AllocatedPort
-
- Enclosing class:
- PortManager
private static class PortManager.AllocatedPort extends java.lang.ref.WeakReference<PortManager.PortRef>
Referenceimplementation used to track no longer used reserved ports.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicReference<java.util.function.BiConsumer<java.lang.Integer,java.util.Set<PortManager.PortRef.CloseOption>>>closerprivate intport
-
Constructor Summary
Constructors Modifier Constructor Description privateAllocatedPort(PortManager.PortRef referent, java.lang.ref.ReferenceQueue<? super PortManager.PortRef> q)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidrelease()
-
-
-
Field Detail
-
port
private final int port
-
closer
private final java.util.concurrent.atomic.AtomicReference<java.util.function.BiConsumer<java.lang.Integer,java.util.Set<PortManager.PortRef.CloseOption>>> closer
-
-
Constructor Detail
-
AllocatedPort
private AllocatedPort(PortManager.PortRef referent, java.lang.ref.ReferenceQueue<? super PortManager.PortRef> q)
-
-