public final class BlackListPlugin extends AbstractPlugin
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
BlackListPlugin.BlackListRule
黑名单规则定义
|
| 限定符和类型 | 字段和说明 |
|---|---|
private ConcurrentLinkedQueue<BlackListPlugin.BlackListRule> |
ipBlackList |
| 构造器和说明 |
|---|
BlackListPlugin() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addRule(BlackListPlugin.BlackListRule rule)
添加黑名单失败规则
|
void |
removeRule(BlackListPlugin.BlackListRule rule)
移除黑名单规则
|
AsynchronousSocketChannel |
shouldAccept(AsynchronousSocketChannel channel) |
afterDecode, afterRead, afterWrite, beforeEncode, beforeProcess, beforeRead, beforeWrite, stateEventprivate final ConcurrentLinkedQueue<BlackListPlugin.BlackListRule> ipBlackList
public AsynchronousSocketChannel shouldAccept(AsynchronousSocketChannel channel)
shouldAccept 在接口中 MonitorshouldAccept 在类中 AbstractPluginpublic void addRule(BlackListPlugin.BlackListRule rule)
rule - .public void removeRule(BlackListPlugin.BlackListRule rule)
rule - .Copyright © 2023. All rights reserved.