Class ThreadedResolver

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ThreadedResolver extends Resolver
GThreadedResolver is an implementation of GResolver which calls the libc lookup functions in threads to allow them to run asynchronously.
Since:
2.20
  • Constructor Details

    • ThreadedResolver

      public ThreadedResolver(MemorySegment address)
      Create a ThreadedResolver instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • ThreadedResolver

      public ThreadedResolver()
      Create a new ThreadedResolver.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the ThreadedResolver class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected ThreadedResolver asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Resolver
      Returns:
      the instance as if it were its parent type
    • builder

      public static ThreadedResolver.Builder<? extends ThreadedResolver.Builder> builder()
      A ThreadedResolver.Builder object constructs a ThreadedResolver with the specified properties. Use the various set...() methods to set properties, and finish construction with ThreadedResolver.Builder.build().
      Returns:
      the builder object