第一种就是较为熟悉的轮询方法。
由于响应可用性和轮询周期,轮询方法可能有延迟。
The polling method may have delays due to response availability and polling cycle.
回调方法比轮询方法更及时,能确保响应被及时处理。
This method is timelier than the polling method and guarantees that the response is handled immediately.
轮询方法的主要缺点是:当扩展到更多客户机时,将生成大量的通信量。
The main drawback of the polling approach is the amount of traffic generated as it scales to many clients.
为降低故障管理流量对网络的影响,本文提出了一种SNMP分布汇集轮询方法。
To reduce the impact of network fault management traffic, a novel SNMP distributed aggregative polling method is presented.
客户机不会像使用轮询方法那样生成烦人的通信量,并且事件发生后可立即发布给客户机。
Clients don't produce the noisy traffic characteristic of polling, and as soon as events occur, they can be published to the client.
在传统的轮询方法中,客户机发送一个请求到服务器,然后总是可以收到一个即时响应(如果服务器有更新数据)或者一个“无可用数据”的响应。
In the traditional polling method, the client sends a request to the server and always either gets an immediate response if the server has any updated data, or a no-data-available response.
这似乎是一个合理的方法,如同任何对远程资源的每次轮询所命名的那样。
This seems as reasonable a way as any to name each poll of a remote resource.
SHMVP:当应用程序正在使用通信的共享内存方法时,该类将为新连接处理轮询任务。
SHM VP: Handles the task of polling for new connections when the application is using the shared memory method of communication.
这个结构体可作为一个参数,让方法进行轮询,或者注册到一个回调中,在撤销被请求的时候触发。
This struct is used as an argument to allow methods to poll on it or register a callback to be fired when cancellation is requested. Cancellationtokensource.
这些因素使得没有轮询就不可能实现甚至是简单的readline方法。
These factors make it impossible to implement even a simple readline method without polling.
如果考虑WeighingMachine接口,weighJar()方法需要频繁轮询,因此明智的做法是为每个ProductionLine 使用一个专用线程,使设计可伸缩。
If we consider the WeighingMachine interface, the weighJar() method needs to be frequently polled, so it's sensible to have a dedicated thread for each ProductionLine to make the design scalable.
Bayeux实现支持一种名为长轮询的特定HTTP方法。
Bayeux implementations support a specific HTTP method called long polling.
SOCVP:为通信的TCP/IPBerkeley 套接字方法处理轮询任务。
SOC VP: Handles polling tasks for the TCP/IP Berkeley sockets method of communication.
在这篇文章中,我将介绍多种可以替代轮询的方法。
In this article, I discuss various approaches that can be alternatives to polling.
轮询就是我们大多数来检查邮件的方法。
对于中断请求,不阻塞但是仍然要花较长时间执行的方法可以轮询中断状态,并在被中断的时候提前返回。
Methods that do not block but that still may take a long time to execute can respect requests for interruption by polling the interrupted status and return early if interrupted.
长轮询是用于更新服务器数据的另外一种方法。
Long poll is another approach that is used to update server data.
回调方法将句柄返回应用程序,这样,应用程序能继续处理其他消息,不必轮询响应消息。
The callback method returns the handle back to the application so that it can keep processing other messages without having to poll for the response message.
虽然可以通过增加轮询的时间间隔来减轻服务器负荷,但是这种方法会产生不良后果,即延迟客户机对服务器事件的感知。
The server load can be alleviated by increasing the polling interval, but this has the undesirable consequence of introducing a lag between a server event and the client's awareness of it.
从现在开始,通过轮询来确实文件是否需要重新读取的方法应该作为古董了。
So there's no need to poll the file any longer to determine whether it needs to be reread.
这篇文章讨论了几种模拟服务器推送的方法,从纯轮询到实时服务器推送,文中说明了每种方法的优缺点。
In this article, I discussed various approaches for simulating a server push, ranging from pure polling to a real-time server push, and noted the strengths and weaknesses of each approach.
对于长轮询,客户机以与传统轮询类似的方法向服务器请求信息。
With long polling, the client requests information from the server in a manner that is similar to traditional polling.
考虑到这样两个问题,对于需要关键、实时的服务器端更新的企业应用程序而言,轮询并不是最理想的方法。
Given these two problems, polling may not be an appropriate approach for enterprise applications requiring critical, real-time, server-side updates.
休眠的数据源也可以有个活跃的接口,方法是让代理定期轮询它,并在接下来的轮询中传输更改的信息。
A passive data source can be made to have an active interface by an agent that polls it periodically and actively sends information about changes in successive polls.
为避免事件接收者轮询事件何时发生,可以通过Receiver接口的receive方法调用事件接收者。
To avoid event receivers polling to determine when an event occurs, event receivers are invoked through the receive method of the receiver interface.
此外,使用此方法,很容易编写使用轮询和定期页面加载来探测WebSpherePortal页面的应用程序。
Furthermore, using this method, it is easy to write a custom application that probes your WebSphere Portal pages using polling and periodically loading the pages.
应当用同步方法receive轮询消息或者考虑使用消息驱bean替代这些方法。
Instead of using these methods, you should either poll for messages using the synchronous receive methods or consider using a message-driven bean.
poll()方法在中继上轮询发送给这个移动对等点的消息。
The poll() method polls the relay for messages addressed to this mobile peer.
现提出一种基于轮询的流量监测方法并对其进行改进,缩短包捕获时的数据包行走路径。
A polling based traffic monitoring method is proposed and improved by shortening the journeys of packets when packets capture.
应用推荐