All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jukusoft.vertx.connection.clientserver.Server Maven / Gradle / Ivy

package com.jukusoft.vertx.connection.clientserver;

import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.net.NetServerOptions;

public interface Server {

    public void init ();

    public void init (Vertx vertx);

    public void start (int port, Handler> listenHandler);

    public void start (String host, int port, Handler> listenHandler);

    public void setThreadPoolSize (int eventThreads, int workerThreads);

    public void setCustomHandler (MessageHandler customHandler);

    public NetServerOptions getNetServerOptions ();

    /**
    * set handler which is called, if new client connects to server
    */
    public void setClientHandler (Handler clientHandler);

    public void setServersCount (int nOfServerThreads);

    public void shutdown ();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy