Class HttpPublisher
java.lang.Object
org.nustaq.kontraktor.remoting.http.undertow.HttpPublisher
- All Implemented Interfaces:
Cloneable,org.nustaq.kontraktor.remoting.base.ActorPublisher
public class HttpPublisher
extends Object
implements org.nustaq.kontraktor.remoting.base.ActorPublisher, Cloneable
Created by ruedi on 04/06/15.
Builder helper to publish an Actor via Http
-
Constructor Summary
ConstructorsConstructorDescriptionHttpPublisher(org.nustaq.kontraktor.Actor actor, String hostName, String urlPath, int port) HttpPublisher(BldFourK cfgFourK, org.nustaq.kontraktor.Actor facade, String hostName, String urlPath, int port) -
Method Summary
Modifier and TypeMethodDescriptionusable in context of Http4k builderprotected HttpPublisherclone()coding(org.nustaq.kontraktor.remoting.encoding.Coding coding) connectionVerifier(Function<KHttpExchange, ConnectionAuthResult> connectionVerifier) facade(org.nustaq.kontraktor.Actor facade) org.nustaq.kontraktor.remoting.encoding.Codingorg.nustaq.kontraktor.ActorlongintgetPort()longorg.nustaq.kontraktor.remoting.base.TrafficMonitoridleSessionTimeout(long idleSessionTimeout) port(int port) prepareResponse(Consumer<io.undertow.server.HttpServerExchange> prepareResponse) org.nustaq.kontraktor.IPromise<org.nustaq.kontraktor.remoting.base.ActorServer>serType(org.nustaq.kontraktor.remoting.encoding.SerializerType tp) setSessionTimeout(long sessionTimeout) setTrafficMonitor(org.nustaq.kontraktor.remoting.base.TrafficMonitor trafficMonitor) toWS()enables sharing of common settings if publishing also as websocket serviceMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nustaq.kontraktor.remoting.base.ActorPublisher
publish
-
Constructor Details
-
HttpPublisher
public HttpPublisher() -
HttpPublisher
-
HttpPublisher
-
-
Method Details
-
connectionVerifier
public HttpPublisher connectionVerifier(Function<KHttpExchange, ConnectionAuthResult> connectionVerifier) -
prepareResponse
public HttpPublisher prepareResponse(Consumer<io.undertow.server.HttpServerExchange> prepareResponse) -
getConnectionVerifier
-
buildHttpApi
usable in context of Http4k builder -
toWS
enables sharing of common settings if publishing also as websocket service- Returns:
-
publish
public org.nustaq.kontraktor.IPromise<org.nustaq.kontraktor.remoting.base.ActorServer> publish(Consumer<org.nustaq.kontraktor.Actor> disconnectCallback) - Specified by:
publishin interfaceorg.nustaq.kontraktor.remoting.base.ActorPublisher
-
idleSessionTimeout
-
getIdleSessionTimeout
public long getIdleSessionTimeout() -
hostName
-
urlPath
-
port
-
coding
-
serType
-
facade
- Specified by:
facadein interfaceorg.nustaq.kontraktor.remoting.base.ActorPublisher
-
setTrafficMonitor
public HttpPublisher setTrafficMonitor(org.nustaq.kontraktor.remoting.base.TrafficMonitor trafficMonitor) - Specified by:
setTrafficMonitorin interfaceorg.nustaq.kontraktor.remoting.base.ActorPublisher
-
setSessionTimeout
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getHostName
-
getUrlPath
-
getPort
public int getPort() -
getCoding
public org.nustaq.kontraktor.remoting.encoding.Coding getCoding() -
getSessionTimeout
public long getSessionTimeout() -
getFacade
public org.nustaq.kontraktor.Actor getFacade() -
getTrafficMonitor
public org.nustaq.kontraktor.remoting.base.TrafficMonitor getTrafficMonitor()
-