Flex:是否可以停止远程呼叫? [英] Flex : Is it possible to stop a remote call?

查看:33
本文介绍了Flex:是否可以停止远程呼叫?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找了很久,还是没有找到答案.

I search for a long time, but I still not found the answer.

通常情况下,我们保留远程方法调用的令牌,例如 Flex -> Java.但是,如果客户端知道不再需要当前调用,如何停止服务器处理?

In common case, we keep the token of a remote method call, Flex -> Java for example. But, if the client know that the current call is not needed anymore, how stopping the server processing ?

使用 asyncToken 是否可以停止远程调用?

With an asyncToken, is it possible to stop a remote call ?

感谢您的回答.

推荐答案

据我所知,AsyncToken 只是为某些操作提供额外的数据.您需要访问该操作才能取消.

As I understood it, an AsyncToken just provides extra data for some operation. You'll need to access that operation to cancel.

如果您正在调用 HTTPService,您使用 cancel() 方法.

IF you're calling an HTTPService, you use the cancel() method.

如果您使用的是 WebService,您应该可以调用 getOperation() 方法,然后 cancel() 对应的操作.

If you're using a WebService, you should be able to call getOperation() method and then cancel() the corresponding operation.

如果您使用的是 RemoteObject 您应该能够调用 getOperation() 方法,然后 cancel() 对应的操作.

If you're using a RemoteObject you should be able to call getOperation() method and then cancel() on the corresponding operation.

这篇关于Flex:是否可以停止远程呼叫?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆