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 ae
named service
intermediary comp_3205
official a
  • Field Details Link icon

  • Constructor Details Link icon

    • NameableExecutor Link icon

      public NameableExecutor(ExecutorService executorService)
  • Method Details Link icon

    • named Link icon

      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 Lae;a(Ljava/lang/String;)Ljava/util/concurrent/Executor;
    • execute Link icon

      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 Lae;execute(Ljava/lang/Runnable;)V
    • shutdown Link icon

      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 Lae;a(JLjava/util/concurrent/TimeUnit;)V
    • wrapForTracy Link icon

      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 Lae;a(Ljava/lang/Runnable;)Ljava/lang/Runnable;
    • toString Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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