在netty中,Progressive listener中的进度和总数代表什么

在netty中,Progressive listener中的进度和总数代表什么,netty,Netty,请解释任何一个,在ChannelProgressiveFutureListener iterface的OperationProgressived方法中,Progressive和total变量代表什么,它代表总的未传输字节数,下面是代码及其输出结果: ChannelFuture future = channel.writeAndFlush(bodyRequestEncoder, channel.newProgressivePromise()); future.addLis

请解释任何一个,在ChannelProgressiveFutureListener iterface的OperationProgressived方法中,Progressive和total变量代表什么,它代表总的未传输字节数,下面是代码及其输出结果:

 ChannelFuture future = channel.writeAndFlush(bodyRequestEncoder, channel.newProgressivePromise());
            future.addListener(new ChannelProgressiveFutureListener() {

                @Override
                public void operationComplete(ChannelProgressiveFuture future) throws Exception {
                    // TODO Auto-generated method stub

                }

                @Override
                public void operationProgressed(ChannelProgressiveFuture future, long progress, long total) throws Exception {
                    System.out.println("progress : " + progress + " of total: " + total);

                }
            });
和控制台输出:

progress : 1 of total: -1
progress : 2 of total: -1
progress : 3 of total: -1
progress : 4 of total: -1
progress : 5 of total: -1
progress : 6 of total: -1
progress : 7 of total: -1

进度
是以百分比表示的进度,
总进度
是“当进度达到时表示操作结束的数字。如果操作结束未知,则为-1”


请查看。

但进度直到7时仍然没有指定100%完成