public class Tokens extends Object
| 构造器和说明 |
|---|
Tokens() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
bind(String token,
ChannelContext channelContext)
绑定token.
|
Set<ChannelContext> |
find(TioConfig tioConfig,
String token)
Find.
|
int |
size() |
void |
unbind(ChannelContext channelContext)
解除channelContext绑定的token
|
void |
unbind(TioConfig tioConfig,
String token)
解除tioConfig范围内所有ChannelContext的 token绑定
|
public void bind(String token, ChannelContext channelContext)
token - the tokenchannelContext - the channel contextpublic Set<ChannelContext> find(TioConfig tioConfig, String token)
token - the tokenpublic int size()
public void unbind(ChannelContext channelContext)
channelContext - the channel contextCopyright © 2023. All rights reserved.