Class NIOServerConnector
java.lang.Object
org.nustaq.kontraktor.asyncio.AsyncServerSocket
org.nustaq.kontraktor.remoting.tcp.NIOServerConnector
- All Implemented Interfaces:
ActorServerConnector
Created by ruedi on 10/05/15.
Publishes an actor as a server using non-blocking IO backed TCP.
The number of threads does not increase with the number of clients.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(Actor facade, Function<ObjectSocket, ObjectSink> factory) static IPromise<ActorServer>static Promise<ActorServer>Methods inherited from class org.nustaq.kontraktor.asyncio.AsyncServerSocket
close, connect, isClosed, receiveLoop
-
Constructor Details
-
NIOServerConnector
public NIOServerConnector(int port)
-
-
Method Details
-
Publish
-
Publish
-
connect
- Specified by:
connectin interfaceActorServerConnector- Throws:
Exception
-
closeServer
- Specified by:
closeServerin interfaceActorServerConnector
-