| A Sleeper allows the request to halt and cease execution for some time,
while still allowing output.
There are 3 envisaged implementations
- Old servlet stacks where the only option is to call
Object.wait(long) and
Object.notify to resume.
- Jetty, where an Ajax Continuation causes an exception
- Newer async servlets where the implementation will probably continue
with the servlet engine able to detect that it should not complete the
request.
All implementations of Sleeper must be
Serializable so we can
store Sleepers in the session and therefore have other connections wake them
up.
author: Joe Walker [joe at getahead dot ltd dot uk] |