📄 globals.java
字号:
package com.hypefiend.javagamebook.common;/** * Globals.java * * Common constants for client and server * * @author <a href="mailto:bret@hypefiend.com">bret barker</a> * @version 1.0 */public class Globals { /** port the server listens on */ public static final int PORT = 8398; /** size of ByteBuffer for reading/writing from channels */ public static final int NET_BUFFER_SIZE=512; /** maximum event size in bytes */ public static final int MAX_EVENT_SIZE=5000; /** interval to sleep between attempts to write to a channel. */ public static final long CHANNEL_WRITE_SLEEP = 10L; /** number of worker threads for EventWriter */ public static final int EVENT_WRITER_WORKERS = 5; /** default number of workers for GameControllers */ public static final int DEFAULT_CONTROLLER_WORKERS = 5;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -