摘要:
值对象模式 阅读全文
摘要:
```java @Slf4j public class PoisonPill { /** * 毒丸模式:生产者通过某种方式告知消费者,消息已经发送完毕,消费端将停止接收任何消息。 */ @Test public void all() throws InterruptedException { final ArrayBlockingQueue queue = new ArrayB... 阅读全文