Java中是否存在有界非阻塞集合? [英] Is there a bounded non-blocking Collection in Java?

查看:405
本文介绍了Java中是否存在有界非阻塞集合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我唯一可以找到的是BoundedFIFOBuffer,它已被弃用。任何其他?

The only one I can find is the BoundedFIFOBuffer, which is deprecated. Any others?

推荐答案

BoundedFIFOBuffer 是你所指的)不是被弃用,它刚刚移动包。不推荐使用 org.apache.commons.collections 中的原始代码,而是将其移至 org.apache.commons.collections.buffer

BoundedFIFOBuffer in Apache Commons Collections (which I assume is what you're referring to) is not deprecated, it has just moved packages. The original one in org.apache.commons.collections is deprecated, and has instead been moved to org.apache.commons.collections.buffer

这篇关于Java中是否存在有界非阻塞集合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆