com.epam.common.transport.server
Interface Server

All Known Implementing Classes:
NIOTCPServer, SSLTCPServer, TCPServer

public interface Server

The common server interface.
Provides ability to start and stop operation and listen the incoming connections.


Method Summary
 void setIncomingConnectionListener(ConnectionListener connectionListener)
          Sets the connection listener.
 void start()
          Start the server.
 void stop()
          Stop server.
 

Method Detail

setIncomingConnectionListener

void setIncomingConnectionListener(ConnectionListener connectionListener)
Sets the connection listener.

Parameters:
connectionListener - the connection listener

start

void start()
           throws IOException
Start the server.

Throws:
IOException - - if error occurred

stop

void stop()
          throws IOException
Stop server.

Throws:
IOException - - if error occurred


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.