每个方法都提供了一个回调对象,这样就可以在完成远程过程调用后收到异步通知。
Each method provides a callback object so that you are notified asynchronously when the remote procedure call is complete.
该文件提供在远程接口中定义的所有方法以及应用服务器所需的方法(例如回调方法)的实现。
This file provides an implementation of all the methods defined in the remote interface, in addition to methods required by the application server (for example, callback methods).
例如,可以在回调基类中实现错误处理方法,让所有回调都可以使用它,从而确保以一致的方式处理所有远程服务异常。
For example, an error handling method can be implemented in a callback base class so that it can be used by all callbacks to ensure all remote service exceptions will be handled consistently.
这种方法依赖于接受回调函数名作为请求参数的远程服务。
This approach relies on the remote service accepting a callback function name as a request parameter.
调用远程方法时,ActionScript就有机会通过声明回调函数处理结果和任何错误了。
When a remote method is called, ActionScript is offered the opportunity to handle the result and any fault by declaring callback functions.
假定数据库管理器是在一个远程的服务器上,那么让这个方法异步并且允许客户端提供一个回调方法将是非常好的设计。
Assuming that the database manager is on a remote server, it might be a good design decision to make the method asynchronous and allow the client to provide a callback method.
假定数据库管理器是在一个远程的服务器上,那么让这个方法异步并且允许客户端提供一个回调方法将是非常好的设计。
Assuming that the database manager is on a remote server, it might be a good design decision to make the method asynchronous and allow the client to provide a callback method.
应用推荐