fatmas1982 / java-restlib

Automatically exported from code.google.com/p/java-restlib
Apache License 2.0
0 stars 0 forks source link

Support for continuations and async request handling #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
support is completed for the servlet connector. Will come back to adding 
support in netty later.

Original comment by bordo...@gmail.com on 23 Jan 2012 at 11:35