public class NettyWebSocketRegistry extends WebSocketRegistry
readLock, registry, timer, webSocketFilter, writeLock| Constructor and Description |
|---|
NettyWebSocketRegistry(services.moleculer.ServiceBroker broker,
long cleanupSeconds) |
| Modifier and Type | Method and Description |
|---|---|
void |
deregister(java.lang.String path,
io.netty.channel.ChannelHandlerContext ctx) |
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,
java.lang.String path) |
void |
register(java.lang.String path,
io.netty.channel.ChannelHandlerContext ctx) |
protected Endpoint |
toEnpoint(io.netty.channel.ChannelHandlerContext ctx) |
countClients, deregister, register, run, send, setWebSocketFilter, stoppedpublic NettyWebSocketRegistry(services.moleculer.ServiceBroker broker,
long cleanupSeconds)
public void register(java.lang.String path,
io.netty.channel.ChannelHandlerContext ctx)
public void deregister(java.lang.String path,
io.netty.channel.ChannelHandlerContext ctx)
protected Endpoint toEnpoint(io.netty.channel.ChannelHandlerContext ctx)
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,
java.lang.String path)
throws java.io.IOException
java.io.IOException