diff options
Diffstat (limited to 'sandbox/travelsample/contributions/car-contribution/src/main/java')
-rw-r--r-- | sandbox/travelsample/contributions/car-contribution/src/main/java/scatours/car/CarImpl.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sandbox/travelsample/contributions/car-contribution/src/main/java/scatours/car/CarImpl.java b/sandbox/travelsample/contributions/car-contribution/src/main/java/scatours/car/CarImpl.java index 6f3e81e6c2..2ed94333d7 100644 --- a/sandbox/travelsample/contributions/car-contribution/src/main/java/scatours/car/CarImpl.java +++ b/sandbox/travelsample/contributions/car-contribution/src/main/java/scatours/car/CarImpl.java @@ -89,7 +89,14 @@ public class CarImpl implements Search, Book { }
public void searchAsynch(TripLeg tripLeg) {
-
+ System.out.println("Starting car search");
+
+ try {
+ this.wait(4000);
+ } catch(Exception ex){
+ // do nothing
+ }
+
// return available hotels
searchCallback.searchResults(searchSynch(tripLeg));
}
|