public interface Server
Modifier and Type | Method and Description |
---|---|
default AbstractServer |
asAbstract() |
default boolean |
isAbstract() |
void |
setIncomingConnectionExecutor(ExecutorService executorService)
Set custom executor service.
|
void |
setIncomingConnectionListener(ConnectionListener connectionListener)
Sets the connection listener.
|
void |
start()
Start the server.
|
void |
stop()
Stop server.
|
void setIncomingConnectionListener(ConnectionListener connectionListener)
connectionListener
- the connection listenervoid start() throws IOException
IOException
- - if error occurredvoid stop() throws IOException
IOException
- - if error occurredvoid setIncomingConnectionExecutor(ExecutorService executorService)
executorService
- the executor will be used for working with incoming connections.default boolean isAbstract()
default AbstractServer asAbstract()
Copyright © 2000–2022 EPAM Systems. All rights reserved.