Class Handle

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    BpfObj

    public class Handle
    extends java.lang.Object
    implements java.io.Closeable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int fd  
      (package private) static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Handle> fdUpdater  
    • Constructor Summary

      Constructors 
      Constructor Description
      Handle​(int fd)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      int fd()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • fd

        private volatile int fd
      • fdUpdater

        static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Handle> fdUpdater
    • Constructor Detail

      • Handle

        public Handle​(int fd)
    • Method Detail

      • fd

        public int fd()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable