package org.webpieces.asyncserver.api;
import java.nio.ByteBuffer;
import java.util.concurrent.CompletableFuture;
import org.webpieces.nio.api.channels.TCPServerChannel;
<BUG>public interface AsyncServer {
public CompletableFuture<Void> closeServerChannel();</BUG>
public void enableOverloadMode(ByteBuffer overloadResponse);
public void disableOverloadMode();
public TCPServerChannel getUnderlyingChannel();

package org.webpieces.asyncserver.api;
import java.net.SocketAddress;
import java.nio.ByteBuffer;
import java.util.concurrent.CompletableFuture;
import org.webpieces.nio.api.channels.TCPServerChannel;
public interface AsyncServer {
public void start(SocketAddress bindAddr);
public CompletableFuture<Void> closeServerChannel();
public void enableOverloadMode(ByteBuffer overloadResponse);
public void disableOverloadMode();
public TCPServerChannel getUnderlyingChannel();
