Class NettyWebSocketRegistry
java.lang.Object
services.moleculer.web.WebSocketRegistry
services.moleculer.web.netty.NettyWebSocketRegistry
- All Implemented Interfaces:
Runnable
-
Field Summary
Fields inherited from class WebSocketRegistry
readLock, registry, timer, webSocketFilter, writeLock -
Constructor Summary
ConstructorsConstructorDescriptionNettyWebSocketRegistry(services.moleculer.ServiceBroker broker, long cleanupSeconds) -
Method Summary
Modifier and TypeMethodDescriptionvoidderegister(String path, io.netty.channel.ChannelHandlerContext ctx) io.datatree.PromiseisRefused(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpRequest req, io.netty.handler.codec.http.HttpHeaders headers, services.moleculer.ServiceBroker broker, String path) voidprotected EndpointtoEnpoint(io.netty.channel.ChannelHandlerContext ctx) Methods inherited from class WebSocketRegistry
countClients, deregister, register, run, send, setWebSocketFilter, stopped
-
Constructor Details
-
NettyWebSocketRegistry
public NettyWebSocketRegistry(services.moleculer.ServiceBroker broker, long cleanupSeconds)
-
-
Method Details
-
register
-
deregister
-
toEnpoint
-
isRefused
public io.datatree.Promise isRefused(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpRequest req, io.netty.handler.codec.http.HttpHeaders headers, services.moleculer.ServiceBroker broker, String path) throws IOException - Throws:
IOException
-