log.debug("updating current head to " + head);
ctx.pipeline().remove(RecordIdDecoder.class);
ctx.pipeline().remove(this);
ctx.pipeline().addLast(new SegmentDecoder(store));
preloaderExecutor = new DefaultEventExecutorGroup(4);
SegmentPreLoaderHandler h1 = new SegmentPreLoaderHandler();
ctx.pipeline().addLast(preloaderExecutor, h1);
loaderExecutor = new DefaultEventExecutorGroup(4);
SegmentLoaderHandler h2 = new SegmentLoaderHandler(store, head,
preloaderExecutor, loaderExecutor, this.observer.getID());
ctx.pipeline().addLast(loaderExecutor, h2);
h1.channelActive(ctx);