Class NTalkServer
java.lang.Object
net.thevpc.nuts.lib.ntalk.NTalkServer
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionNTalkServer(int port, String service, NTalkServer.Action action) NTalkServer(String host, int port, String service, NTalkServer.Action action) NTalkServer(String service, NTalkServer.Action action) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidrunAsync()voidrunSync()setThreadPool(ExecutorService threadPool) voidstop()
-
Constructor Details
-
NTalkServer
-
NTalkServer
-
NTalkServer
-
-
Method Details
-
getThreadPool
-
setThreadPool
-
runAsync
public void runAsync() -
runSync
public void runSync() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
stop
public void stop()
-