[jax-rs-spec users] [jsr339-experts] Is ResumeCallback needed

From: Sergey Beryozkin <>
Date: Mon, 1 Oct 2012 12:55:31 +0100


I wonder if

is needed ?

It does not harm, to have it, but it is really an extra check/execution
call as far as I can see. ResumeCallback can log the message, but what
else can it do, in addition to what the application code that either
resumes or cancels the invocation can and which has much more info about
why the response is resumed or cancelled ?

It is only when a timeout occurs with no TimeoutHandler available when
ResumeCallback can report something that the application code does not
know about - in this case may be CompletionCallback can be extended with
so CompletionCallback will cover: the completion, the escaped exception
case, the timeout