handlerregistration.java
来自「一款Java实现的HTTP代理服务器」· Java 代码 · 共 26 行
JAVA
26 行
package rabbit.io;/** A class to hold information about when an operation * was attached to the selector. Needed for timeout options. */public class HandlerRegistration { public long when; public SocketHandler handler; public HandlerRegistration (SocketHandler handler) { this.when = System.currentTimeMillis (); this.handler = handler; } public HandlerRegistration (SocketHandler handler, long when) { this.when = when; this.handler = handler; } public String toString () { return "HandlerRegistration[when: " + when + ", handler: " + handler + "]"; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?