Package org.nustaq.net
Class TCPObjectServer
java.lang.Object
org.nustaq.net.TCPObjectServer
public class TCPObjectServer
extends java.lang.Object
Created by ruedi on 22.08.14.
As socket allowing to send/receive serializable objects
see ./test/net for an example.
Note that by providing a Json configuration, it can be used cross language
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTCPObjectServer.NewClientListener -
Constructor Summary
Constructors Constructor Description TCPObjectServer(int port)TCPObjectServer(FSTConfiguration conf, int port) -
Method Summary
Modifier and Type Method Description protected voiddumpException(java.lang.Throwable th)booleanisTerminated()voidsetTerminated(boolean terminated)voidstart(TCPObjectServer.NewClientListener listener)
-
Constructor Details
-
TCPObjectServer
-
TCPObjectServer
public TCPObjectServer(int port)
-
-
Method Details
-
start
- Throws:
java.io.IOException
-
dumpException
protected void dumpException(java.lang.Throwable th) -
setTerminated
public void setTerminated(boolean terminated) -
isTerminated
public boolean isTerminated()
-