1 package examples.example1.classes; 2 3 public class SomeServiceClass { 4 public Long somePossiblyLongRunningMethod(int callId) { 5 // some heavy and long running operation here 6 7 System.out.println("Execution started of call #" + callId); 8 9 try { 10 Thread.sleep(5000); 11 } catch (InterruptedException e) { 12 13 } 14 15 System.out.println("Execution finished of call #" + callId); 16 17 return (long) 1; 18 } 19 }