@NotThreadSafe public abstract class AbstractWorker extends Object implements Worker
Modifier | Constructor and Description |
---|---|
protected |
AbstractWorker(ExecutorService executorService) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the server.
|
protected ExecutorService |
getExecutorService() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDependencies, getName, getServices, start, stop
protected AbstractWorker(ExecutorService executorService)
executorService
- executor service to use internallyprotected ExecutorService getExecutorService()
public void close() throws IOException
Server
close
in interface Server<WorkerNetAddress>
IOException
Copyright © 2023. All Rights Reserved.