package com.l7tech.server.tomcat.nio2;

import com.l7tech.objectmodel.Goid;
import com.l7tech.server.tomcat.SsgConnectorAwareChannel;
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 var1, Goid var2) {
      super(var1);
      this.b = var2;
      this.c = a.incrementAndGet();
   }

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

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