ArrayBlockingQueue:一个由数组支持的有界队列。
LinkedBlockingQueue:一个由链接节点支持的可选有界队列。
LinkedBlockingQueue: An optionally bounded queue backed by linked nodes.
该服务器基于有界队列数据结构,采用单独线程阻塞模式读写,并模拟了事件驱动的机制。
The server is based on a bounded queue, and has a single worker thread running in a block mode and runs as if in event driven mechanism.
应用推荐