Class PortManager.AllocatedPort

  • Enclosing class:
    PortManager

    private static class PortManager.AllocatedPort
    extends java.lang.ref.WeakReference<PortManager.PortRef>
    Reference implementation 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>>> closer  
      private int port  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void release()  
      • Methods inherited from class java.lang.ref.Reference

        clear, clone, enqueue, get, isEnqueued, reachabilityFence
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Method Detail

      • release

        private void release()