This commit is contained in:
wentch
2015-12-28 15:21:27 +08:00
parent 898acb8e4c
commit a882283230

View File

@@ -483,7 +483,7 @@ public abstract class AsyncConnection implements AsynchronousByteChannel, AutoCl
}
@Override
public <A> void write(ByteBuffer[] srcs, int offset, int length, A attachment, CompletionHandler<Integer, ? super A> handler) {
public <A> void write(ByteBuffer[] srcs, int offset, int length, A attachment, final CompletionHandler<Integer, ? super A> handler) {
channel.write(srcs, offset, length, writeTimeoutSecond > 0 ? writeTimeoutSecond : 60, TimeUnit.SECONDS,
attachment, new CompletionHandler<Long, A>() {