- All Superinterfaces:
- ChannelFutureListener, EventListener
public interface ChannelFutureProgressListener
- extends ChannelFutureListener
Listens to the progress of a time-consuming I/O operation such as a large
file transfer. If this listener is added to a
ChannelFuture of an
I/O operation that supports progress notification, the listener's
operationProgressed(ChannelFuture, long, long, long) method will be
called back by an I/O thread. If the operation does not support progress
operationProgressed(ChannelFuture, long, long, long)
will not be invoked. Like a usual
ChannelFutureListener that this
ChannelFutureListener.operationComplete(ChannelFuture) will be called
when the future is marked as complete.
Return the control to the caller quickly
operationProgressed(ChannelFuture, long, long, long) and
ChannelFutureListener.operationComplete(ChannelFuture) is directly called by an I/O
thread. Therefore, performing a time consuming task or a blocking operation
in the handler method can cause an unexpected pause during I/O. If you need
to perform a blocking operation on I/O completion, try to execute the
operation in a different thread using a thread pool.
- $Rev: 2080 $, $Date: 2010-01-26 18:04:19 +0900 (Tue, 26 Jan 2010) $
- The Netty Project, Trustin Lee
void operationProgressed(ChannelFuture future,
- Invoked when the I/O operation associated with the
has been progressed.
future - the source
ChannelFuture which called this
Copyright © 2008-2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.