public class RateLimiterPlugin<T> extends AbstractPlugin<T>
| Constructor and Description |
|---|
RateLimiterPlugin(int readRateLimiter,
int writeRateLimiter) |
| Modifier and Type | Method and Description |
|---|---|
AsynchronousSocketChannel |
shouldAccept(AsynchronousSocketChannel channel)
监控已接收到的连接
|
afterRead, afterWrite, beforeRead, beforeWrite, preProcess, stateEventpublic RateLimiterPlugin(int readRateLimiter,
int writeRateLimiter)
public AsynchronousSocketChannel shouldAccept(AsynchronousSocketChannel channel)
NetMonitorshouldAccept in interface NetMonitorshouldAccept in class AbstractPlugin<T>channel - 当前已经建立连接的通道对象Copyright © 2021. All rights reserved.