summaryrefslogtreecommitdiff
path: root/java/src/Ice/AsyncCallback.java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2009-11-23 13:28:08 +0100
committerBenoit Foucher <benoit@zeroc.com>2009-11-23 13:28:08 +0100
commit2c578015edcb36cdc0acd0227295de1dcca1b995 (patch)
treee163980b5dabb43a40089a29fdf8ff47a3e07f1c /java/src/Ice/AsyncCallback.java
parentno longer generating inspect method for each Ruby exception (diff)
downloadice-2c578015edcb36cdc0acd0227295de1dcca1b995.tar.bz2
ice-2c578015edcb36cdc0acd0227295de1dcca1b995.tar.xz
ice-2c578015edcb36cdc0acd0227295de1dcca1b995.zip
New AMI mapping
Diffstat (limited to 'java/src/Ice/AsyncCallback.java')
-rw-r--r--java/src/Ice/AsyncCallback.java47
1 files changed, 47 insertions, 0 deletions
diff --git a/java/src/Ice/AsyncCallback.java b/java/src/Ice/AsyncCallback.java
new file mode 100644
index 00000000000..a5bb1a17a13
--- /dev/null
+++ b/java/src/Ice/AsyncCallback.java
@@ -0,0 +1,47 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+package Ice;
+
+/**
+ * An application can optionally supply an instance of this class in an
+ * asynchronous invocation. The application must create a subclass and
+ * implement the completed method.
+ **/
+public abstract class AsyncCallback extends Callback
+{
+ /**
+ * Invoked when the invocation completes. The subclass should
+ * call the matching <code>end_OP</code> method on the proxy and
+ * must be prepared to handle exceptions.
+ *
+ * @param r The asynchronous result object returned by the <code>begin_OP</code> method.
+ **/
+ public abstract void completed(AsyncResult r);
+
+ /**
+ * Invoked when the Ice run time has passed the outgoing message
+ * buffer to the transport.
+ *
+ * @param r The asynchronous result object returned by the <code>begin_OP</code> method.
+ **/
+ public void sent(AsyncResult r)
+ {
+ }
+
+ public final void __completed(AsyncResult r)
+ {
+ completed(r);
+ }
+
+ public final void __sent(AsyncResult r)
+ {
+ sent(r);
+ }
+}