JAX-RS 2.0 brings in several new features aligned with other lightweight and async processing features provided in other components. The new features include the following:
Client API
Common configuration
Asynchronous processing
Filters/interceptors
Hypermedia support
Server-side content negotiation
From this list of features, this section covers asynchronous processing and also the relevance of asynchronous processing to filters/interceptors.
Asynchronous processing is included in both client and server side APIs of JAX-RS 2.0 to facilitate asynchronous interaction between client and server components. The following list shows the new interfaces and classes added to support this feature:
Server side:
AsyncResponse
:@Suspended
:@Suspended
instructs the container that the HTTP request processing should happen in...