Class TCPNIOPublisher
java.lang.Object
org.nustaq.kontraktor.remoting.tcp.TCPNIOPublisher
- All Implemented Interfaces:
ActorPublisher
- Direct Known Subclasses:
TCPPublisher
public class TCPNIOPublisher extends java.lang.Object implements ActorPublisher
Created by ruedi on 18/06/15.
Publishes actors on TCP (NIO based)
-
Constructor Summary
Constructors Constructor Description TCPNIOPublisher()TCPNIOPublisher(Actor facade, int port) -
Method Summary
Modifier and Type Method Description TCPNIOPublishercoding(Coding coding)TCPNIOPublisherfacade(Actor facade)CodinggetCoding()ActorgetFacade()intgetPort()TrafficMonitorgetTrafficMonitor()TCPNIOPublisherport(int port)IPromise<ActorServer>publish(java.util.function.Consumer<Actor> disconnectHandler)TCPNIOPublisherserType(SerializerType type)TCPNIOPublishersetTrafficMonitor(TrafficMonitor trafficMonitor)java.lang.StringtoString()
-
Constructor Details
-
TCPNIOPublisher
public TCPNIOPublisher() -
TCPNIOPublisher
-
-
Method Details
-
publish
- Specified by:
publishin interfaceActorPublisher
-
serType
-
facade
- Specified by:
facadein interfaceActorPublisher
-
setTrafficMonitor
- Specified by:
setTrafficMonitorin interfaceActorPublisher
-
port
-
coding
-
getFacade
-
getPort
public int getPort() -
getCoding
-
getTrafficMonitor
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-