Record Class NameableExecutor

java.lang.Object
java.lang.Record
net.minecraft.util.thread.NameableExecutor
Record Components:
service -
All Implemented Interfaces:
Executor

public record NameableExecutor(ExecutorService service) extends Record implements Executor
Mappings:
Namespace Name
named net/minecraft/util/thread/NameableExecutor
intermediary net/minecraft/class_10207
official ad
named service
intermediary comp_3205
official a
  • Field Details

  • Constructor Details

    • NameableExecutor

      public NameableExecutor(ExecutorService executorService)
  • Method Details

    • named

      public Executor named(String name)
      Mappings:
      Namespace Name Mixin selector
      named named Lnet/minecraft/util/thread/NameableExecutor;named(Ljava/lang/String;)Ljava/util/concurrent/Executor;
      intermediary method_64116 Lnet/minecraft/class_10207;method_64116(Ljava/lang/String;)Ljava/util/concurrent/Executor;
      official a Lad;a(Ljava/lang/String;)Ljava/util/concurrent/Executor;
    • execute

      public void execute(Runnable runnable)
      Specified by:
      execute in interface Executor
      Mappings:
      Namespace Name Mixin selector
      named execute Lnet/minecraft/util/thread/NameableExecutor;execute(Ljava/lang/Runnable;)V
      intermediary execute Lnet/minecraft/class_10207;execute(Ljava/lang/Runnable;)V
      official execute Lad;execute(Ljava/lang/Runnable;)V
    • shutdown

      public void shutdown(long time, TimeUnit unit)
      Mappings:
      Namespace Name Mixin selector
      named shutdown Lnet/minecraft/util/thread/NameableExecutor;shutdown(JLjava/util/concurrent/TimeUnit;)V
      intermediary method_64114 Lnet/minecraft/class_10207;method_64114(JLjava/util/concurrent/TimeUnit;)V
      official a Lad;a(JLjava/util/concurrent/TimeUnit;)V
    • wrapForTracy

      private static Runnable wrapForTracy(Runnable runnable)
      Mappings:
      Namespace Name Mixin selector
      named wrapForTracy Lnet/minecraft/util/thread/NameableExecutor;wrapForTracy(Ljava/lang/Runnable;)Ljava/lang/Runnable;
      intermediary method_64115 Lnet/minecraft/class_10207;method_64115(Ljava/lang/Runnable;)Ljava/lang/Runnable;
      official a Lad;a(Ljava/lang/Runnable;)Ljava/lang/Runnable;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • service

      public ExecutorService service()
      Returns the value of the service record component.
      Returns:
      the value of the service record component