Now, check out how the Continuations feature in Jetty 6 can be helpful in this kind of situation.
现在,查看Jetty6的Continuations特性如何为这类情形提供帮助。
The Seaside image has a running version of the Web server and the code for the continuations framework.
seaside映像有一个运行版本的Web服务器和continuation框架的代码。
You can think of them of as the Continuations equivalent of the standard Object wait()/notify() mechanism.
可以将它们视为标准的Objectwait()/notify()机制的Continuations等价体。
The continuations are linked together in a tree structure which allows you to traverse to the different execution steps the way you want.
Continuations以树的结构连接在一起,可以任意访问不同的执行步骤。
Given a hexagon inscribed in a conic section, the three pairs of the continuations of opposite sides meet on a straight line, called the Pascal line.
已知一个六边形内接于一条圆锥曲线,那么这个六边形对边的交点位于同一条直线上。
Continuations dramatically simplify the Web development model.
延续大大简化了Web开发模型。
RIFE makes continuations simple and accessible to the everyday Web developer.
RIFE 使延续变得很简单,一般的Web开发人员也能够使用延续。
Overall, I believe that continuations represent a significant step forward, and you're likely to see pervasive implementations of continuation servers in the near future.
总的来说,我相信延续代表着一种重大的技术进步,在不久的将来您可能会看到流行的延续服务器实现。
With continuations, you can keep the state in a continuation and restore the state on demand.
有了延续,就可以在延续中保存状态并根据需要恢复状态。
In the near future, hardware improvements will make the added resource consumption of continuations less critical.
在不远的将来,硬件的改进会使延续所增加的资源消耗变得无足轻重。
Right now, you'd expect most of the implementations of continuation servers to be in languages that support continuations, and these are not mainstream languages.
目前,大多数延续服务器实现是用支持延续的语言编写的,而这些语言不是主流语言。
The framework can identify individual continuations within a URL and store that continuation in the session.
框架可以识别一个URL中的各个延续并将延续存储在会话中。
Note: Listing 4 USES backslash characters to indicate line continuations; the characters are not part of the command.
注意:清单4使用反斜杠字符表示连续行;它不是该命令的一部分。
The framework handles all of it for you in the form of continuations -- a very powerful concept.
框架以continuation的形式为您处理所有的状态 ——一个非常强大的概念。
These simple list-building instructions form the foundation of recursions, higher-order functions, and even higher-order abstractions like closures and continuations.
这些由列表构建的简单指令构成了递归、高阶函数,甚至是闭包和continuation之类高级抽象的基础。
The article provides valuable insight into RIFE's continuations implementation as well as some of the challenges in clustering a non-trivial application like RIFE.
这篇文章提供了RIFEContinuations实现的颇有价值的深入见解和集群rife这样一个不凡应用框架遇到的挑战。
So a Web development framework that USES continuations can capture a continuation after processing each request and store it in the session with an identifier.
所以,使用延续的Web开发框架可以在处理每个请求之后捕获一个延续,并用一个标识符将它存储在会话中。
The Wee framework is another Ruby framework that has many of the characteristics of a continuation server but doesn't use native language continuations.
Wee框架是另一种Ruby框架,它具有延续服务器的许多特征,但是没有使用本机语言延续。
The only significant feature that we will not implement is continuations – this is consistent with the JRuby project’s position on this feature as well.
只有一个明显的特性我们不打算实现,那就是Continuations——这正好也和JRuby项目在这个特性上的立场保持一致。
A framework designer can lessen the expense by using an approach called partial continuations, where the framework saves only the application-specific portion of the continuation.
框架设计者可以利用一种称为部分延续(partial continuations)的方法来降低开销,按照这种方法,框架只保存延续中应用程序特有的部分。
But instead of sending any response to the client as a result of the exception, the request is held in a queue of pending Continuations, and the HTTP connection is kept open.
但是发生该异常之后并没有将响应发送给客户机,请求被放到处于等待状态的Continuation队列中,而HTTP连接仍然保持打开状态。
Similarly, the lexer has to know about the structure of continuations; the parser only knows that it sometimes gets additional text to add on to a header.
与此类似,lexer必须明白附加部分的结构;解析器只知道有时它需要将附加的文本添加到标题中。
Jetty supports the programming construct known as continuations.
Jetty支持被称作continuations的编程结构。
But the state machine is a nice approach to continuations.
但是,状态机(state machine)是不错的延续方式。
Long term LindenLabs would like to combine the two techniques, using Mono Tasklets for fast continuations and their technique when continuations need to be serialized.
从长远来看,LindenLabs想要将这两种技术整合起来:使用MonoTasklets实现快速的continuations,使用自己的技术实现需要序列化的continuations。
The RIFE framework implements its own continuations, and the WebWork framework uses the RIFE continuations implementation.
RIFE框架实现它自己的延续,而 WebWork 框架使用 RIFE 的延续实现。
One of these features built in to the Jetty 6 Web container, which will probably play a large role in the Geronimo 2.0 space (if not before the 2.0 release), is called continuations.
其中一个功能叫做延续(continuations),它被构建到Jetty6Web容器中,可能会在Geronimo 2.0空间(如果不在2.0发行之前)中扮演一个大角色。
This allows for general purpose continuations that actually capture the stack. The stack can be restored as often as necessary.
它考虑到了通用的continuations,可以捕获到栈,同时又可以在必要的情况下恢复。
And remember, thanks to DWR's exploitation of Jetty Continuations, no threads are tied up on the server while the client is waiting for a new event to arrive.
请记住,正是由于DWR使用了JettyContinuations,当客户机等待新事件到来时不会占用服务器上面的线程。
I haven't given any figures for the scalability of Continuations because performance in a real-world application depends on so many variables.
我没有给出Continuations可扩展性的具体数字,因为实际应用程序的性能取决于多种变化的因素。
应用推荐