public class ClientService extends Object
| Constructor and Description |
|---|
ClientService() |
| Modifier and Type | Method and Description |
|---|---|
static void |
active(io.netty.channel.ChannelHandlerContext context) |
static SocketClient |
getClient(io.netty.channel.ChannelHandlerContext context) |
static ClientGroup |
getClientGroup() |
static ClientMap |
getClients() |
static void |
inactive(io.netty.channel.ChannelHandlerContext context) |
static void |
publish(String topic,
String message) |
static void |
remove(io.netty.channel.ChannelHandlerContext context) |
static SocketClient |
subscribe(io.netty.channel.ChannelHandlerContext context,
String topic) |
public static void active(io.netty.channel.ChannelHandlerContext context)
public static void inactive(io.netty.channel.ChannelHandlerContext context)
public static SocketClient getClient(io.netty.channel.ChannelHandlerContext context)
public static ClientMap getClients()
public static SocketClient subscribe(io.netty.channel.ChannelHandlerContext context, String topic)
public static void remove(io.netty.channel.ChannelHandlerContext context)
public static ClientGroup getClientGroup()
Copyright © 2019. All rights reserved.