public class BlackListPlugin<T> extends AbstractPlugin<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
BlackListPlugin.BlackListRule
黑名单规则定义
|
| Constructor and Description |
|---|
BlackListPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(BlackListPlugin.BlackListRule rule)
添加黑名单失败规则
|
void |
removeRule(BlackListPlugin.BlackListRule rule)
移除黑名单规则
|
AsynchronousSocketChannel |
shouldAccept(AsynchronousSocketChannel channel)
监控已接收到的连接
|
afterRead, afterWrite, beforeRead, beforeWrite, preProcess, stateEventpublic AsynchronousSocketChannel shouldAccept(AsynchronousSocketChannel channel)
NetMonitorshouldAccept in interface NetMonitorshouldAccept in class AbstractPlugin<T>channel - 当前已经建立连接的通道对象public void addRule(BlackListPlugin.BlackListRule rule)
rule - 规则public void removeRule(BlackListPlugin.BlackListRule rule)
rule - 规则Copyright © 2021. All rights reserved.