public interface ChannelFutureProgressListener extends ChannelFutureListener
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
notification, operationProgressed(ChannelFuture, long, long, long)
will not be invoked. Like a usual ChannelFutureListener
that this
interface extends, ChannelFutureListener.operationComplete(ChannelFuture)
will be called
when the future is marked as complete.
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.CLOSE, CLOSE_ON_FAILURE
Modifier and Type | Method and Description |
---|---|
void |
operationProgressed(ChannelFuture future,
long amount,
long current,
long total)
Invoked when the I/O operation associated with the
ChannelFuture
has been progressed. |
operationComplete
void operationProgressed(ChannelFuture future, long amount, long current, long total) throws Exception
ChannelFuture
has been progressed.future
- the source ChannelFuture
which called this
callbackException
Copyright © 2008-2014 The Netty Project. All Rights Reserved.