public final 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 |
|---|---|
boolean |
acceptMonitor(AsynchronousSocketChannel channel)
监控已接收到的连接
|
void |
addRule(BlackListPlugin.BlackListRule rule)
添加黑名单失败规则
|
void |
removeRule(BlackListPlugin.BlackListRule rule)
移除黑名单规则
|
preProcess, readMonitor, stateEvent, writeMonitorpublic boolean acceptMonitor(AsynchronousSocketChannel channel)
NetMonitor监控已接收到的连接
acceptMonitor in interface NetMonitor<T>acceptMonitor in class AbstractPlugin<T>channel - 当前已经建立连接的通道对象public void addRule(BlackListPlugin.BlackListRule rule)
rule - 规则public void removeRule(BlackListPlugin.BlackListRule rule)
rule - 规则Copyright © 2020. All rights reserved.