diff options
Diffstat (limited to 'java/src/Ice/SentCallback.java')
-rw-r--r-- | java/src/Ice/SentCallback.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/java/src/Ice/SentCallback.java b/java/src/Ice/SentCallback.java new file mode 100644 index 00000000000..1a2f8a08009 --- /dev/null +++ b/java/src/Ice/SentCallback.java @@ -0,0 +1,33 @@ +// ********************************************************************** +// +// 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 sent method. + **/ +public abstract class SentCallback extends Callback +{ + /** + * Called when a queued invocation is sent successfully. + **/ + public abstract void sent(); + + public final void __completed(AsyncResult __result) + { + // Ignore. + } + + public final void __sent(AsyncResult __result) + { + sent(); + } +} |