Class StandardVirtualThreadExecutor

  • All Implemented Interfaces:
    java.util.concurrent.Executor, javax.management.MBeanRegistration, Executor, JmxEnabled, Lifecycle

    public class StandardVirtualThreadExecutor
    extends LifecycleMBeanBase
    implements Executor
    An executor that uses a new virtual thread for each task.
    • Constructor Detail

      • StandardVirtualThreadExecutor

        public StandardVirtualThreadExecutor()
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Executor
      • getNamePrefix

        public java.lang.String getNamePrefix()
      • setNamePrefix

        public void setNamePrefix​(java.lang.String namePrefix)
      • execute

        public void execute​(java.lang.Runnable command)
        Specified by:
        execute in interface java.util.concurrent.Executor
      • getDomainInternal

        protected java.lang.String getDomainInternal()
        Description copied from class: LifecycleMBeanBase
        Method implemented by sub-classes to identify the domain in which MBeans should be registered.
        Specified by:
        getDomainInternal in class LifecycleMBeanBase
        Returns:
        The name of the domain to use to register MBeans.
      • getObjectNameKeyProperties

        protected java.lang.String getObjectNameKeyProperties()
        Description copied from class: LifecycleMBeanBase
        Allow sub-classes to specify the key properties component of the ObjectName that will be used to register this component.
        Specified by:
        getObjectNameKeyProperties in class LifecycleMBeanBase
        Returns:
        The string representation of the key properties component of the desired ObjectName