Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-09-12 01:22:22 -0400
committerslewis2007-09-12 01:22:22 -0400
commitea7a8aa4fed35a78d40c21ff17a702f873d154ef (patch)
tree5b081f715cecdedaad51b21e22995d8968fc7f68
parentd7aa2946a61250f1c92a6f1243c1ef9a8951d73d (diff)
downloadorg.eclipse.ecf-ea7a8aa4fed35a78d40c21ff17a702f873d154ef.tar.gz
org.eclipse.ecf-ea7a8aa4fed35a78d40c21ff17a702f873d154ef.tar.xz
org.eclipse.ecf-ea7a8aa4fed35a78d40c21ff17a702f873d154ef.zip
Changed name of AsynchResult to AsyncResult. Abstracted public API for AsyncResult to IAsyncResult. Added method to IRemoteService.callAsynch that returns IAsyncResult. Implemented new method in org.eclipse.ecf.provider.remoteservice. Added test case for testing new API.
-rw-r--r--framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/generic/SOConnector.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/generic/SOConnector.java b/framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/generic/SOConnector.java
index 6cf2c70e6..3d2527e4a 100644
--- a/framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/generic/SOConnector.java
+++ b/framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/generic/SOConnector.java
@@ -23,7 +23,8 @@ import org.eclipse.ecf.core.sharedobject.events.ISharedObjectEvent;
import org.eclipse.ecf.core.sharedobject.events.SharedObjectCallEvent;
import org.eclipse.ecf.core.sharedobject.util.IQueueEnqueue;
import org.eclipse.ecf.core.sharedobject.util.QueueException;
-import org.eclipse.ecf.core.util.AsynchResult;
+import org.eclipse.ecf.core.util.AsyncResult;
+import org.eclipse.ecf.core.util.IAsyncResult;
public class SOConnector implements ISharedObjectConnector {
ID sender;
@@ -53,13 +54,13 @@ public class SOConnector implements ISharedObjectConnector {
}
}
- protected AsynchResult[] fireCallEvent(ISharedObjectEvent event)
+ protected IAsyncResult[] fireCallEvent(ISharedObjectEvent event)
throws QueueException {
- AsynchResult[] results = new AsynchResult[receiverQueues.size()];
+ IAsyncResult[] results = new IAsyncResult[receiverQueues.size()];
int i = 0;
for (Enumeration e = receiverQueues.elements(); e.hasMoreElements();) {
IQueueEnqueue queue = (IQueueEnqueue) e.nextElement();
- results[i] = new AsynchResult();
+ results[i] = new AsyncResult();
queue.enqueue(new SharedObjectCallEvent(event
.getSenderSharedObjectID(), event, results[i]));
}
@@ -103,7 +104,7 @@ public class SOConnector implements ISharedObjectConnector {
fireEvents(events);
}
- public AsynchResult[] callAsynch(ISharedObjectEvent arg) throws Exception {
+ public IAsyncResult[] callAsynch(ISharedObjectEvent arg) throws Exception {
return fireCallEvent(arg);
}

Back to the top