/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.objectmodel.Goid
 */
package com.l7tech.server.tomcat.nio2;

import com.l7tech.objectmodel.Goid;
import com.l7tech.server.tomcat.SsgConnectorAwareChannel;
import com.l7tech.server.tomcat.nio2.AsynchronousSocketChannelWrapper;
import java.nio.channels.AsynchronousSocketChannel;
import java.util.concurrent.atomic.AtomicLong;

public class SsgAsynchronousSocketChannel
extends AsynchronousSocketChannelWrapper
implements SsgConnectorAwareChannel {
    private static final AtomicLong a = new AtomicLong();
    private final Goid b;
    private final long c;

    SsgAsynchronousSocketChannel(AsynchronousSocketChannel asynchronousSocketChannel, Goid goid) {
        super(asynchronousSocketChannel);
        this.b = goid;
        this.c = a.incrementAndGet();
    }

    @Override
    public Goid getConnectorGoid() {
        return this.b;
    }

    @Override
    public long getConnectionId() {
        return this.c;
    }
}

