How to Pause, Stop , Resume a ChunkedFile Transfer

metalstorm metalheadstorm at gmail.com
Sun Oct 23 01:03:51 EDT 2011


So i'm using a ChunkedFile and ChunkedWriteHandler on my client, once ive
started the transfer: 
ch.write(new ChunkedFile(somefile)); 

How do I then pause the transfer (doesn't write the next chunk) and
subsequently resume it later when needed or stop the transfer without just
pulling the plug (closing the channel).

Would it involve some form of thread waiting and notifying?


Could i make someFile null at somepoint, as if it was like a stream/so it
can't get the next chunk then call .ResumeTransfer() after instancing
someFile again?

thanks.

--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/How-to-Pause-Stop-Resume-a-ChunkedFile-Transfer-tp6921402p6921402.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list