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

import com.l7tech.objectmodel.Goid;
import com.l7tech.server.tomcat.SsgConnectorAwareChannel;
import com.l7tech.server.tomcat.nio.SocketChannelWrapper;
import java.nio.channels.SocketChannel;
import java.util.concurrent.atomic.AtomicLong;

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

    SsgSocketChannel(SocketChannel socketChannel, Goid goid) {
        super(socketChannel);
        this.b = goid;
        this.c = a.incrementAndGet();
    }

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

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

