Class TCPClientConnector
java.lang.Object
org.nustaq.kontraktor.remoting.tcp.TCPClientConnector
- All Implemented Interfaces:
ActorClientConnector
Created by ruedi on 10/05/15.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Callback<ActorClientConnector>protected Stringprotected intprotected static AtomicReference<TCPClientConnector.RemotingHelper>protected org.nustaq.kontraktor.remoting.tcp.TCPClientConnector.MyTCPSocketFields inherited from interface org.nustaq.kontraktor.remoting.base.ActorClientConnector
OBJECT_MAX_BATCH_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionTCPClientConnector(int port, String host, Callback<ActorClientConnector> disconnectCallback) -
Method Summary
Modifier and TypeMethodDescriptionconnect(Function<ObjectSocket, ObjectSink> factory) protected static TCPClientConnector.RemotingHelperget()in case clients are connected from non actor world, provide a global actor(thread) for remote client processing (=polling queues, encoding)
-
Field Details
-
singleton
-
port
protected int port -
host
-
socket
protected org.nustaq.kontraktor.remoting.tcp.TCPClientConnector.MyTCPSocket socket -
disconnectCallback
-
-
Constructor Details
-
TCPClientConnector
-
-
Method Details
-
get
in case clients are connected from non actor world, provide a global actor(thread) for remote client processing (=polling queues, encoding) -
connect
- Specified by:
connectin interfaceActorClientConnector- Throws:
Exception
-
closeClient
- Specified by:
closeClientin interfaceActorClientConnector
-