summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/contributions/common-contribution
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/travelsample/contributions/common-contribution')
-rw-r--r--sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/Search.java4
-rw-r--r--sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/SearchCallback.java5
2 files changed, 9 insertions, 0 deletions
diff --git a/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/Search.java b/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/Search.java
index 020d09a0ae..097ae69e38 100644
--- a/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/Search.java
+++ b/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/Search.java
@@ -20,14 +20,18 @@
package scatours.common;
import org.osoa.sca.annotations.Callback;
+import org.osoa.sca.annotations.Conversational;
import org.osoa.sca.annotations.OneWay;
import org.osoa.sca.annotations.Remotable;
@Remotable
+@Conversational
@Callback(SearchCallback.class)
public interface Search {
TripItem[] searchSynch(TripLeg tripLeg);
@OneWay
void searchAsynch(TripLeg tripLeg);
+
+ int getPercentComplete();
}
diff --git a/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/SearchCallback.java b/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/SearchCallback.java
index 3f94b29676..252fb955a2 100644
--- a/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/SearchCallback.java
+++ b/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/SearchCallback.java
@@ -19,9 +19,14 @@
package scatours.common;
+import org.osoa.sca.annotations.Conversational;
+import org.osoa.sca.annotations.EndsConversation;
import org.osoa.sca.annotations.Remotable;
@Remotable
+@Conversational
public interface SearchCallback {
+ @EndsConversation
void searchResults(TripItem[] items);
+ void setPercentComplete(String searchComponent, int percentComplete);
}