Package org.sonews.daemon.io
Class VirtualThreadedNNTPDaemon
java.lang.Object
org.sonews.daemon.DaemonRunner
org.sonews.daemon.io.VirtualThreadedNNTPDaemon
- All Implemented Interfaces:
Runnable
,DaemonRunnable
,NNTPDaemonRunnable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected Log
protected int
protected ServerSocket
protected ExecutorService
Fields inherited from class org.sonews.daemon.DaemonRunner
daemon
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.sonews.daemon.DaemonRunner
setDaemon
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.sonews.daemon.DaemonRunnable
setDaemon
-
Field Details
-
context
@Autowired protected org.springframework.context.ApplicationContext context -
logger
-
port
protected int port -
serverSocket
-
threadPool
-
-
Constructor Details
-
VirtualThreadedNNTPDaemon
public VirtualThreadedNNTPDaemon()
-
-
Method Details
-
run
public void run() -
setPort
public void setPort(int port) - Specified by:
setPort
in interfaceNNTPDaemonRunnable
-
dispose
public void dispose()Close the server socket and shutdown the thread pool.- Specified by:
dispose
in interfaceDaemonRunnable
-