diff options
Diffstat (limited to '')
-rw-r--r-- | sandbox/travelsample/contributions/car-contribution/src/main/java/scatours/car/CarImpl.java | 8 |
1 files changed, 6 insertions, 2 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 2ed94333d7..04742446ed 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 @@ -92,7 +92,7 @@ public class CarImpl implements Search, Book { System.out.println("Starting car search");
try {
- this.wait(4000);
+ Thread.sleep(4000);
} catch(Exception ex){
// do nothing
}
@@ -101,7 +101,11 @@ public class CarImpl implements Search, Book { searchCallback.searchResults(searchSynch(tripLeg));
}
+ public int getPercentComplete(){
+ return 100;
+ }
+
public String book(TripItem tripItem) {
return "car1";
- }
+ }
}
|