Skip to content

Commit 039c64b

Browse files
committed
Add get functions to ExecutorFigurationSupport
1 parent aa94593 commit 039c64b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

spring-context/src/main/java/org/springframework/scheduling/concurrent/ExecutorConfigurationSupport.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,4 +537,22 @@ protected void initiateEarlyShutdown() {
537537
initiateShutdown();
538538
}
539539

540+
/**
541+
* Whether this executor is using virtual threads.
542+
* @return {@code true} if using virtual threads
543+
* @since 6.2.1
544+
*/
545+
public boolean isVirtualThreads() {
546+
return this.virtualThreads;
547+
}
548+
549+
/**
550+
* Executor beanName.
551+
* @return the executor beanName
552+
* @since 6.2.1
553+
*/
554+
@Nullable
555+
public String getBeanName() {
556+
return this.beanName;
557+
}
540558
}

0 commit comments

Comments
 (0)