@SuppressWarnings("unchecked")
public void notify(final CometEvent cometEvent, final Iterator<CometHandler> iteratorHandlers) throws IOException {
if (blockingNotification || pipeline == null) {
notify0(cometEvent, iteratorHandlers);
} else {
pipeline.addTask(new TaskBase() {
public void doTask() throws IOException {
notify0(cometEvent, iteratorHandlers);
}
});