P E N C I L
Login
Async Jersey
  1. asyncResponse.resume(Response.status(Response.Status.REQUEST_TIMEOUT).entity("Request time out.").build());
    AsyncResponse.resume(normalObject);
  2. AsyncResponse.setTimeoutHandler()
    AsyncResponse.setTimeout()
  3. AsyncResponse.register(new CompletionCallback())
    AsyncResponse.register(new ConnectionCallback())
    For ConnectionCallback, it's called when data is written and connection is lost. If connection is cut before writing data, the callback is not called at all (tested)