Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7414117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:00:33+00:00 2026-05-29T07:00:33+00:00

Can the Spring @Async annotation be used on interface methods (so all implementations of

  • 0

Can the Spring @Async annotation be used on interface methods (so all implementations of that interface will implicitly have @Async on that method) or can it only be used on concrete classes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:00:34+00:00Added an answer on May 29, 2026 at 7:00 am

    I quickly tested it and having @Async on an interface will make implementation asynchronous.

    If you want to try it yourself: You can easily test this by checking that the values of Thread.currentThread().getId() are different (before calling the method and inside the method) or just adding a Thread.sleep(10000); in the method expected to be asynchronous.

    Also take note the return type must be void or java.util.concurrent.Future.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to assure that only spring can instantiate a class, and not
This is just a curiosity question. I know that Spring can be used in
With Spring MVC, you can specify that a particular URL will handled by a
I have Spring REST application that can marshall an object to JSON when a
How can I tell Spring to run that init method? I need to get
I want to use both ContextLoaderListener (so that I can pass Spring Beans to
Can I access spring bean that exposed using http invoker (server) from GWT application
Can you use a Spring-WS WebserviceTemplate for calling a webservice and avoid that it
Can I make the spring service classes final? Is there any harm doing that?
When writing async method implementations using the BeginInvoke/EndInvoke pattern the code might look something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.