Description
currently the pause/resume in PhaseInterceptorChain doesn't work.
If invoke pause() in one interceptor, the PhaseInterceptorChain.doIntercept() will exit with COMPLETE status, which means we have no chance to resume the paused interceptorChain.
We need use wait/notifyall mechanism to refactor it
something like in PhaseInterceptorChain.doIntercept(), we add
while (state == State.PAUSED) {
try
catch (InterruptedException e) {
}
}
notifyAll();
and the resume() method should be
if (state == State.PAUSED)