Servlet 3.0 and Netty both provide ways for us to allow clients to use
non-blocking IO requests to services they use in the background.
The basic idea would be to define two interfaces:
interface AsyncHandle {
Response handle(Request request)
}
interface AsyncAcceptMessage {
Response acceptMessage(Request request, Object message);
}
Implementors of Resources could return Responses to handle() and
acceptMessage() with a special status code (-100 perhaps) and an entity object
which is an instance of the respective async method.
Original issue reported on code.google.com by bordo...@gmail.com on 15 Jan 2012 at 12:29
Original issue reported on code.google.com by
bordo...@gmail.com
on 15 Jan 2012 at 12:29