1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
8 // **********************************************************************
13 * Callback object for {@link ObjectPrx#.begin_ice_invoke}.
15 public abstract class Callback_Object_ice_invoke
extends TwowayCallback
18 * The Ice run time calls <code>response</code> when an asynchronous operation invocation
19 * completes successfully or raises a user exception.
21 * @param __ret Indicates the result of the invocation. If <code>true</code>, the operation
22 * completed succesfully; if <code>false</code>, the operation raised a user exception.
23 * @param outParams Contains the encoded out-parameters of the operation (if any) if <code>ok</code>
24 * is <code>true</code>; otherwise, if <code>ok</code> is <code>false</code>, contains the
25 * encoded user exception raised by the operation.
27 public abstract void response(boolean __ret
, byte[] outParams
);
29 public final void __completed(AsyncResult __result
)
31 ByteSeqHolder outParams
= new ByteSeqHolder();
32 boolean __ret
= false;
35 __ret
= __result
.getProxy().end_ice_invoke(outParams
, __result
);
37 catch(LocalException __ex
)
42 response(__ret
, outParams
.value
);