Skip to content

Commit

Permalink
Add get functions to ExecutorFigurationSupport
Browse files Browse the repository at this point in the history
  • Loading branch information
lucky8987 committed Dec 5, 2024
1 parent aa94593 commit 039c64b
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,4 +537,22 @@ protected void initiateEarlyShutdown() {
initiateShutdown();
}

/**
* Whether this executor is using virtual threads.
* @return {@code true} if using virtual threads
* @since 6.2.1
*/
public boolean isVirtualThreads() {
return this.virtualThreads;
}

/**
* Executor beanName.
* @return the executor beanName
* @since 6.2.1
*/
@Nullable
public String getBeanName() {
return this.beanName;
}
}

0 comments on commit 039c64b

Please sign in to comment.