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
Reference implementation used to track no longer used reserved ports.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicReference<BiConsumer<Integer,Set<PortManager.PortRef.CloseOption>>> private final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAllocatedPort(PortManager.PortRef referent, ReferenceQueue<? super PortManager.PortRef> q) -
Method Summary
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, get, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
port
private final int port -
closer
-
-
Constructor Details
-
AllocatedPort
-
-
Method Details
-
release
private void release()
-