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

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

class g
implements CompletionHandler<Integer, A> {
    final ByteBuffer val$src;
    final CompletionHandler val$handler;
    final k this$1;

    g(k k2, ByteBuffer byteBuffer, CompletionHandler completionHandler) {
        this.this$1 = k2;
        this.val$src = byteBuffer;
        this.val$handler = completionHandler;
    }

    @Override
    public void completed(Integer n2, A a10) {
        this.this$1.b.trace(this.val$src, 0, n2);
        this.val$handler.completed(n2, a10);
    }

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

