Search in sources :

Example 6 with AsyncServer

use of org.webpieces.asyncserver.api.AsyncServer in project webpieces by deanhiller.

the class FrontEndServerManagerImpl method createHttpServer.

@Override
public HttpServer createHttpServer(FrontendConfig config, StreamListener httpListener) {
    preconditionCheck(config);
    Layer1ServerListener listener = buildDatalListener(httpListener, false);
    AsyncServer tcpServer = svrManager.createTcpServer(config.asyncServerConfig, listener);
    HttpServerImpl frontend = new HttpServerImpl(tcpServer, config, listener);
    return frontend;
}
Also used : AsyncServer(org.webpieces.asyncserver.api.AsyncServer)

Aggregations

AsyncServer (org.webpieces.asyncserver.api.AsyncServer)6 InetSocketAddress (java.net.InetSocketAddress)4 AsyncConfig (org.webpieces.asyncserver.api.AsyncConfig)4 AsyncServerManager (org.webpieces.asyncserver.api.AsyncServerManager)4 BufferCreationPool (org.webpieces.data.api.BufferCreationPool)4 ChannelManager (org.webpieces.nio.api.ChannelManager)3 ChannelManagerFactory (org.webpieces.nio.api.ChannelManagerFactory)3 Channel (org.webpieces.nio.api.channels.Channel)3 TCPChannel (org.webpieces.nio.api.channels.TCPChannel)3 Executor (java.util.concurrent.Executor)2 BufferPool (org.webpieces.data.api.BufferPool)2 NamedThreadFactory (org.webpieces.util.threading.NamedThreadFactory)2 TimerTask (java.util.TimerTask)1 Test (org.junit.Test)1 DataListener (org.webpieces.nio.api.handlers.DataListener)1