/*
 * Decompiled with CFR 0.152.
 */
package com.l7tech.server.tomcat.nio2;

import com.l7tech.server.tomcat.nio2.i;
import java.nio.ByteBuffer;
import java.nio.channels.CompletionHandler;

class b
implements CompletionHandler<Long, A> {
    final ByteBuffer[] val$dsts;
    final int val$offset;
    final int val$length;
    final CompletionHandler val$handler;
    final i this$1;

    b(i i2, ByteBuffer[] byteBufferArray, int n2, int n3, CompletionHandler completionHandler) {
        this.this$1 = i2;
        this.val$dsts = byteBufferArray;
        this.val$offset = n2;
        this.val$length = n3;
        this.val$handler = completionHandler;
    }

    @Override
    public void completed(Long l2, A a10) {
        this.this$1.a.trace(this.val$dsts, this.val$offset, this.val$length, this.this$1.a.positions(this.val$dsts), l2);
        this.val$handler.completed(l2, a10);
    }

    @Override
    public void failed(Throwable throwable, A a10) {
        this.val$handler.failed(throwable, a10);
    }
}

