File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Synchronous/Asynchronous

 
Malhar Me
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How can we implement Synchronous/Asynchronous method call in java (at server side).
 
Steve Luke
Bartender
Pie
Posts: 4181
21
IntelliJ IDE Java Python
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Malhar Me wrote:Hi,

How can we implement Synchronous/Asynchronous method call in java (at server side).


Synchronous methods are implemented by simply calling one method after the other:


Asynchronous method calls are done using Threads, where each method (or task) you want to perform is executed in a different Thread, possibly with call backs or synchronization to communicate completion. There are a handful of tools which will make the job easier - read up on ExecutorService, Future, and CompletionService. You should also familiarize yourself with Concurrency Chapter of the Java Tutorial.
 
Malhar Me
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Steve!!!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic