Skip to content

Commit

Permalink
Implemented callable service
Browse files Browse the repository at this point in the history
  • Loading branch information
NitinRanjan committed Jul 21, 2018
1 parent 0f3f697 commit f2e1096
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .idea/dictionaries/nitinr.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions src/main/java/service/CallableService.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

public class CallableService implements Callable{
@Override
public Integer call() throws Exception {
return 1;
public String call() {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
return Thread.currentThread().getName()
}
}

0 comments on commit f2e1096

Please sign in to comment.