public class Tokens extends Object
Constructor and Description |
---|
Tokens() |
Modifier and Type | Method and Description |
---|---|
void |
bind(String token,
ChannelContext channelContext)
绑定token.
|
SetWithLock<ChannelContext> |
find(TioConfig tioConfig,
String token)
Find.
|
MapWithLock<String,SetWithLock<ChannelContext>> |
getMap() |
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 SetWithLock<ChannelContext> find(TioConfig tioConfig, String token)
token
- the tokenpublic MapWithLock<String,SetWithLock<ChannelContext>> getMap()
public void unbind(ChannelContext channelContext)
channelContext
- the channel contextCopyright © 2021. All rights reserved.