protected synchronized void resume(SelectionKey key) {
Iterator<AsyncProcessorTask> iterator = asyncTasks.iterator();
AsyncProcessorTask apt = null;
AsyncExecutor asyncE = null;
ProcessorTask pt = null;
while (iterator.hasNext()){
apt = iterator.next();
asyncE = apt.getAsyncExecutor();
if (asyncE == null){
return;
}
pt = apt.getProcessorTask();
if (pt != null && pt.getSelectionKey() == key){
iterator.remove();
/**
* The connection was parked and resumed before
* the CometEngine.handle() terminated.