public ClientSPDYConnection(
     EndPoint endPoint,
     ByteBufferPool bufferPool,
     Parser parser,
     Factory factory,
     boolean dispatchIO) {
   super(endPoint, bufferPool, parser, factory.getExecutor(), dispatchIO);
   this.factory = factory;
 }
 @Override
 public void onOpen() {
   super.onOpen();
   factory.sessionOpened(getSession());
 }
 @Override
 public void onClose() {
   super.onClose();
   factory.sessionClosed(getSession());
 }